git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Increasing the max_length of the slug field on Titled (and all subclasses).
[philo.git]
/
models
/
base.py
diff --git
a/models/base.py
b/models/base.py
index
9434825
..
2f5bf93
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
@@
-20,7
+20,7
@@
class Tag(models.Model):
class Titled(models.Model):
title = models.CharField(max_length=255)
class Titled(models.Model):
title = models.CharField(max_length=255)
- slug = models.SlugField()
+ slug = models.SlugField(
max_length=255
)
def __unicode__(self):
return self.title
def __unicode__(self):
return self.title