Commit dd1eabc8 authored by chris's avatar chris

content/models.py: remove max_length and fix warning

parent 1d0a358d
......@@ -5,9 +5,9 @@ from sorl.thumbnail.fields import ImageField
class Page(models.Model):
title = models.CharField(max_length=80)
text = RichTextField(max_length=4000,blank=True,null=True)
text = RichTextField(blank=True,null=True)
parent = models.ForeignKey('self',blank=True,null=True)
in_menu = models.BooleanField()
in_menu = models.BooleanField(default=False)
weight = models.IntegerField(default=0,blank=True,null=True)
date = models.DateField(auto_now=True)
bgimage = models.ImageField(upload_to="images",blank=True)
......@@ -62,7 +62,7 @@ class Agenda(models.Model):
class Press(models.Model):
page = models.ForeignKey(Page)
image = ImageField(upload_to="images",blank=True,null=True)
text = RichTextField(max_length=2000,blank=True,null=True)
text = RichTextField(blank=True,null=True)
def __unicode__(self):
return "Press review" + str(self.page)
......@@ -72,7 +72,7 @@ class Press(models.Model):
class Reference(models.Model):
page = models.ForeignKey(Page)
text = RichTextField(max_length=2000,blank=True,null=True)
text = RichTextField(blank=True,null=True)
def __unicode__(self):
return "Reference " + 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