text table should use text
This commit is contained in:
parent
dec34632b8
commit
6da7dcc8bb
1 changed files with 2 additions and 2 deletions
|
@ -15,8 +15,8 @@ class Text(models.Model):
|
||||||
|
|
||||||
user = models.ForeignKey(User)
|
user = models.ForeignKey(User)
|
||||||
slug = models.SlugField()
|
slug = models.SlugField()
|
||||||
title = models.CharField(null=True, max_length=255)
|
title = models.CharField(null=True, max_length=1000)
|
||||||
body = models.TextField(default='')
|
text = models.TextField(default='')
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return u"%s <%s>" % (self.title, self.slug)
|
return u"%s <%s>" % (self.title, self.slug)
|
||||||
|
|
Loading…
Reference in a new issue