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("wiki_article_edited",
11
_("your article has been edited"))
12
notification.create_notice_type("wiki_revision_reverted",
13
_("Article Revision Reverted"),
14
_("your revision has been reverted"))
15
notification.create_notice_type("wiki_observed_article_changed",
16
_("Observed Article Changed"),
17
_("an article you observe has changed"))
20
signals.post_syncdb.connect(create_notice_types,
23
print "Skipping creation of NoticeTypes as notification app not found"