Added uniqueness constraints to Tag, NewsletterArticle, and NewsletterIssue, and...
[philo.git] / models / base.py
index 9434825..700b1e7 100644 (file)
@@ -9,7 +9,7 @@ from UserDict import DictMixin
 
 class Tag(models.Model):
        name = models.CharField(max_length=250)
 
 class Tag(models.Model):
        name = models.CharField(max_length=250)
-       slug = models.SlugField()
+       slug = models.SlugField(unique=True)
        
        def __unicode__(self):
                return self.name
        
        def __unicode__(self):
                return self.name