Commit ba32cc43 authored by chris's avatar chris

content/models.py: remove max_length for RichTextFields

parent dd1eabc8
flyers (0.20140719) UNRELEASED; urgency=low
flyers (0.20140721) UNRELEASED; urgency=low
* Initial release.
-- Christophe Siraut <d@tobald.eu.org> Sat, 19 Jul 2014 15:15:25 +0200
-- Christophe Siraut <d@tobald.eu.org> Sun, 09 Nov 2014 13:40:06 +0100
......@@ -31,7 +31,7 @@ class Image(models.Model):
#image = models.ImageField(upload_to="images")
image = ImageField(upload_to="images")
title = models.CharField(max_length=80,blank=True,null=True)
text = RichTextField(max_length=800,blank=True,null=True)
text = RichTextField(blank=True,null=True)
def url(self):
return '/media/%s' % self.image
......@@ -47,14 +47,14 @@ class Image(models.Model):
class Video(models.Model):
page = models.ForeignKey(Page)
title = models.CharField(max_length=80)
text = RichTextField(max_length=800,blank=True,null=True)
text = RichTextField(blank=True,null=True)
def __unicode__(self):
return self.title
class Agenda(models.Model):
page = models.ForeignKey(Page, unique=True)
text = RichTextField(max_length=2000,blank=True,null=True)
text = RichTextField(blank=True,null=True)
def __unicode__(self):
return "Agenda " + str(self.page)
......
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 to comment