Author: jtauber
Date: Fri Sep 12 06:31:24 2008
New Revision: 94

Modified:
    trunk/notification/models.py

Log:
add unique_together

Modified: trunk/notification/models.py
==============================================================================
--- trunk/notification/models.py        (original)
+++ trunk/notification/models.py        Fri Sep 12 06:31:24 2008
@@ -65,6 +65,7 @@
      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:

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to