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)
|
||||
slug = models.SlugField()
|
||||
title = models.CharField(null=True, max_length=255)
|
||||
body = models.TextField(default='')
|
||||
title = models.CharField(null=True, max_length=1000)
|
||||
text = models.TextField(default='')
|
||||
|
||||
def __unicode__(self):
|
||||
return u"%s <%s>" % (self.title, self.slug)
|
||||
|
|
Loading…
Reference in a new issue