X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/0cf790d4394b8945a4e162bc49ff9bef6c561da7..9ccb8068a1e46fca83c7cc948cb66f17f5d570d2:/models/base.py?ds=sidebyside diff --git a/models/base.py b/models/base.py index 9434825..700b1e7 100644 --- a/models/base.py +++ b/models/base.py @@ -9,7 +9,7 @@ from UserDict import DictMixin class Tag(models.Model): name = models.CharField(max_length=250) - slug = models.SlugField() + slug = models.SlugField(unique=True) def __unicode__(self): return self.name