Permalink
Browse files

add unique_together

git-svn-id: http://django-notification.googlecode.com/svn/trunk@94 590c3fc9-4838-0410-bb95-17a0c9b37ca9
  • Loading branch information...
1 parent 7684876 commit 0f2bf15a44913cc3f1f3c6d8a815f7146d0ca05d @jtauber jtauber committed Sep 12, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 notification/models.py
View
@@ -65,6 +65,7 @@ class NoticeSetting(models.Model):
class Meta:
verbose_name = _("notice setting")
verbose_name_plural = _("notice settings")
+ unique_together = ("user", "notice_type", "medium")
def get_notification_setting(user, notice_type, medium):
try:

0 comments on commit 0f2bf15

Please sign in to comment.