git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added uniqueness constraints to Tag, NewsletterArticle, and NewsletterIssue, and...
[philo.git]
/
models
/
base.py
diff --git
a/models/base.py
b/models/base.py
index
9434825
..
700b1e7
100644
(file)
--- 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)
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