X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/0cf790d4394b8945a4e162bc49ff9bef6c561da7..94f98261589e880ef15d17809112c0615d57b983:/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