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", _("Message Received"), _("you have received a message"), default=2)
14
notification.create_notice_type("messages_reply_received", _("Reply Received"), _("you have received a reply to a message"), default=2)
16
print("Skipping creation of NoticeTypes as notification app not found")
b'\\ No newline at end of file'