6
6
from notification import models as notification
8
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"))
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
19
signals.post_syncdb.connect(create_notice_types,
21
20
sender=notification)
22
21
except ImportError:
23
print "Skipping creation of NoticeTypes as notification app not found"
22
print 'Skipping creation of NoticeTypes as notification app not found'