Permalink
Browse files

Merge pull request #16 from Bastien-/master

added a create_notice_type wrapper in the models
  • Loading branch information...
2 parents 64d365d + 73176ec commit 634374c96a749c804782ad0d31cbb5cb024bbc9e @paltman paltman committed May 14, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 notification/models.py
@@ -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)

0 comments on commit 634374c

Please sign in to comment.