Commit 61cf5a4a by Alex Gaynor

Make slug unique and fix the max_length.

parent fdcce8d0
......@@ -6,7 +6,7 @@ from django.template.defaultfilters import slugify
class Tag(models.Model):
name = models.CharField(max_length=100)
slug = models.SlugField()
slug = models.SlugField(unique=True, max_length=100)
def __unicode__(self):
return self.name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment