Permalink
Please sign in to comment.
Showing
with
108 additions
and 36 deletions.
- +11 −0 kitsune/messages/__init__.py
- +14 −0 kitsune/notifications/__init__.py
- +0 −4 kitsune/notifications/models.py
- +16 −0 kitsune/questions/__init__.py
- +0 −5 kitsune/questions/models.py
- +4 −4 kitsune/search/admin.py
- +1 −3 kitsune/settings.py
- +9 −0 kitsune/sumo/monkeypatch.py
- +29 −1 kitsune/sumo/redis_utils.py
- +5 −1 kitsune/sumo/utils.py
- +7 −5 kitsune/urls.py
- +2 −2 kitsune/users/tests/test_templates.py
- +2 −2 requirements/default.txt
- +0 −1 scripts/travis/test.sh
- +8 −8 wsgi/kitsune.wsgi
11
kitsune/messages/__init__.py
| @@ -1,2 +1,13 @@ | ||
| +from django.apps import AppConfig | ||
| + | ||
| + | ||
| +default_app_config = 'kitsune.messages.MessagesConfig' | ||
| + | ||
| + | ||
| +class MessagesConfig(AppConfig): | ||
| + name = 'kitsune.messages' | ||
| + label = 'kitsune_messages' | ||
| + | ||
| + | ||
| # The number of threads per page. | ||
| MESSAGES_PER_PAGE = 20 |
14
kitsune/notifications/__init__.py
| @@ -0,0 +1,14 @@ | ||
| +from django.apps import AppConfig | ||
| +from django.contrib.auth.models import User | ||
| + | ||
| +import actstream.registry | ||
| + | ||
| + | ||
| +default_app_config = 'kitsune.notifications.NotificationsConfig' | ||
| + | ||
| + | ||
| +class NotificationsConfig(AppConfig): | ||
| + name = 'kitsune.notifications' | ||
| + | ||
| + def ready(self): | ||
| + actstream.registry.register(User) |
4
kitsune/notifications/models.py
16
kitsune/questions/__init__.py
| @@ -0,0 +1,16 @@ | ||
| +from django.apps import AppConfig | ||
| + | ||
| +import actstream.registry | ||
| + | ||
| + | ||
| +default_app_config = 'kitsune.questions.QuestionsConfig' | ||
| + | ||
| + | ||
| +class QuestionsConfig(AppConfig): | ||
| + name = 'kitsune.questions' | ||
| + | ||
| + def ready(self): | ||
| + Question = self.get_model('Question') | ||
| + actstream.registry.register(Question) | ||
| + Answer = self.get_model('Answer') | ||
| + actstream.registry.register(Answer) |
5
kitsune/questions/models.py
8
kitsune/search/admin.py
4
kitsune/settings.py
9
kitsune/sumo/monkeypatch.py
30
kitsune/sumo/redis_utils.py
6
kitsune/sumo/utils.py
12
kitsune/urls.py
4
kitsune/users/tests/test_templates.py
4
requirements/default.txt
1
scripts/travis/test.sh
16
wsgi/kitsune.wsgi
0 comments on commit
226331e