Skip to content

Commit

Permalink
Merge pull request #16 from Bastien-/master
Browse files Browse the repository at this point in the history
added a create_notice_type wrapper in the models
  • Loading branch information
paltman committed May 14, 2013
2 parents 64d365d + 73176ec commit 634374c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions notification/models.py
Expand Up @@ -24,6 +24,10 @@ class LanguageStoreNotAvailable(Exception):
pass


def create_notice_type(label, display, description, **kwargs):
NoticeType.create(label, display, description, **kwargs)


class NoticeType(models.Model):

label = models.CharField(_("label"), max_length=40)
Expand Down

0 comments on commit 634374c

Please sign in to comment.