~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wiki/management.py

  • Committer: franku
  • Date: 2018-04-03 05:18:03 UTC
  • mto: This revision was merged to the branch mainline in revision 491.
  • Revision ID: somal@arcor.de-20180403051803-2003zf49j3xd860i
url fixes; render_to_response() -> render(); disabled tracking

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
    from notification import models as notification
7
7
 
8
8
    def create_notice_types(app, created_models, verbosity, **kwargs):
 
9
        print("Creating noticetypes!!!!!!")
9
10
        notification.create_notice_type('wiki_revision_reverted',
10
11
                                        _('Article Revision Reverted'),
11
12
                                        _('your revision has been reverted'))
13
14
                                        _('Observed Article Changed'),
14
15
                                        _('an article you observe has changed'))
15
16
 
16
 
    # TODO (Franku): post_syncdb is deprecated since Django 1.7
17
 
    # See: https://docs.djangoproject.com/en/1.8/ref/signals/#post-syncdb
18
 
    signals.post_syncdb.connect(create_notice_types,
19
 
                                sender=notification)
20
17
except ImportError:
21
18
    print 'Skipping creation of NoticeTypes as notification app not found'