From c058803e20d705e9cafa2cd8ad6a3a4b91960c60 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 11 Mar 2016 13:15:31 +0100 Subject: Better length for color fields --- chimere/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chimere/models.py') diff --git a/chimere/models.py b/chimere/models.py index 62be67a..218c9e2 100644 --- a/chimere/models.py +++ b/chimere/models.py @@ -187,7 +187,7 @@ class ColorTheme(models.Model): class Color(models.Model): """Color """ - code = models.CharField(_(u"Code/name"), max_length=20, + code = models.CharField(_(u"Code/name"), max_length=200, help_text=_(u"HTML code/name")) order = models.IntegerField(_(u"Order")) color_theme = models.ForeignKey(ColorTheme, verbose_name=_(u"Color theme")) @@ -1181,7 +1181,7 @@ class Route(GeographicItem): has_associated_marker = models.BooleanField(_(u"Has an associated marker"), default=True) color = models.CharField( - _(u"Color"), max_length=20, help_text=_(u"HTML code/name"), + _(u"Color"), max_length=200, help_text=_(u"HTML code/name"), blank=True, null=True) objects = models.GeoManager() @@ -1359,10 +1359,10 @@ class Polygon(GeographicItem): height = models.IntegerField(_(u"Height"), blank=True, null=True) width = models.IntegerField(_(u"Width"), blank=True, null=True) color = models.CharField( - _(u"Color"), max_length=20, help_text=_(u"HTML code/name"), + _(u"Color"), max_length=200, help_text=_(u"HTML code/name"), blank=True, null=True) inner_color = models.CharField( - _(u"Inner color"), max_length=20, + _(u"Inner color"), max_length=200, help_text=_(u"HTML code/name"), blank=True, null=True) objects = models.GeoManager() -- cgit v1.2.3