Create badge notification type
This commit is contained in:
7
badges/management/__init__.py
Normal file
7
badges/management/__init__.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from django.db.models.signals import post_syncdb
|
||||
from notification import models as notification
|
||||
|
||||
def create_notice_types(app, created_models, verbosity, **kwargs):
|
||||
notification.create_notice_type("badge_awarded", "Badge Awarded", "You recieved a badge!")
|
||||
|
||||
post_syncdb.connect(create_notice_types, sender=notification)
|
Reference in New Issue
Block a user