summaryrefslogtreecommitdiff
path: root/chimere/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-03-11 13:15:31 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-03-11 13:15:31 +0100
commitc058803e20d705e9cafa2cd8ad6a3a4b91960c60 (patch)
tree4ae22a98592b7049333b242fdc5ef3cf90f7871b /chimere/models.py
parentdef3f037727637a4dae804deb3bb3b4db9158a7e (diff)
downloadChimère-c058803e20d705e9cafa2cd8ad6a3a4b91960c60.tar.bz2
Chimère-c058803e20d705e9cafa2cd8ad6a3a4b91960c60.zip
Better length for color fields
Diffstat (limited to 'chimere/models.py')
-rw-r--r--chimere/models.py8
1 files changed, 4 insertions, 4 deletions
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()