color should be up to 32 characters, fix color migration

This commit is contained in:
Laura Klünder 2017-09-16 14:19:01 +02:00
parent 20abfe5ad5
commit 8731fd5f11
3 changed files with 27 additions and 2 deletions

View file

@ -183,7 +183,7 @@ class LocationGroup(Location, models.Model):
category = models.ForeignKey(LocationGroupCategory, related_name='groups', on_delete=models.PROTECT,
verbose_name=_('Category'))
priority = models.IntegerField(default=0, db_index=True)
color = models.CharField(null=True, blank=True, max_length=16, verbose_name=_('background color'))
color = models.CharField(null=True, blank=True, max_length=32, verbose_name=_('background color'))
objects = LocationGroupManager()