Source

django-emailform / emailform / models.py

Diff from to

emailform/models.py

         ordering = ('-starts_at',)
 
     title = models.CharField(max_length=80)
-    slug = models.SlugField(unique=True)
+    slug = models.SlugField()
     description = models.TextField(blank=True)
     starts_at = models.DateTimeField(default=datetime.datetime.now)
     is_published = models.BooleanField(default=False)
         max_length=300)
     site = models.ForeignKey(Site)
 
+    class Meta:
+        unique_together = (('slug', 'site'),)
+
     def __unicode__(self):
         return self.title