Fix Messages app label conflicting with Django's Messages.
For Django 1.7.7 upgrade.
author |
Brian Neal <bgneal@gmail.com> |
date |
Mon, 06 Apr 2015 18:48:06 -0500 |
parents |
b8182ddb7847 |
children |
1cb227d59e20 |
files |
messages/__init__.py messages/apps.py |
diffstat |
2 files changed, 7 insertions(+), 0 deletions(-)
[+]
|
line diff
--- a/messages/__init__.py Wed Mar 25 20:31:09 2015 -0500
+++ b/messages/__init__.py Mon Apr 06 18:48:06 2015 -0500
@@ -1,1 +1,2 @@
+default_app_config = 'messages.apps.MessagesConfig'
MSG_BOX_LIMIT = 30 # hard limit on # of msgs per box
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/messages/apps.py Mon Apr 06 18:48:06 2015 -0500
@@ -0,0 +1,6 @@
+from django.apps import AppConfig
+
+class MessagesConfig(AppConfig):
+ name = 'messages'
+ verbose_name = 'Private Messages'
+ label = 'private_messages'