2
# -*- coding: utf-8 -*-
4
from django.conf import settings
5
from django.utils.translation import ugettext_lazy as _
8
if 'notification' in settings.INSTALLED_APPS and getattr(settings, 'DJANGO_MESSAGES_NOTIFY', True):
9
from notification import models as notification
11
def create_notice_types(sender, **kwargs):
12
print('Creating wl specific noticetypes for django-messages ...')
13
notification.create_notice_type('messages_received', _(
14
'Message Received'), _('you have received a message'), default=2)
15
notification.create_notice_type('messages_reply_received', _(
16
'Reply Received'), _('you have received a reply to a message'), default=2)
18
print('Skipping creation of NoticeTypes as notification app not found')