1
from django.db.models import signals
3
from django.utils.translation import ugettext_noop as _
6
from notification import models as notification
8
def create_notice_types(app, created_models, verbosity, **kwargs):
9
notification.create_notice_type("forum_new_topic",
11
_("a new topic has been added to the forum"),
13
notification.create_notice_type("forum_new_post",
15
_("a new comment has been posted to a topic you observe"))
17
signals.post_syncdb.connect(create_notice_types,
20
print "Skipping creation of NoticeTypes as notification app not found"