src/core/models/notice.py
changeset 36 f770159c3cee
parent 33 61c3ffd94f11
child 48 f4fadc1b9d70
--- a/src/core/models/notice.py	Tue Jun 25 15:34:18 2013 +0200
+++ b/src/core/models/notice.py	Tue Jun 25 16:10:23 2013 +0200
@@ -95,11 +95,12 @@
         app_label = 'core'
 
 class NoticeImage(models.Model):
-    relative_url = models.URLField(max_length='1024', null=False, blank=False, unique=True)
+    relative_url = models.URLField(max_length='1024', null=False, blank=False, unique=False)
     notice = models.ForeignKey(Notice, related_name="images")
     
     class Meta:
         app_label = 'core'
+        unique_together = (("relative_url", "notice"),)
 
     
     @property