From 6254726315246d26eea5cea65016cdc2e41cd6d6 Mon Sep 17 00:00:00 2001 From: Johannes Raggam Date: Fri, 2 Dec 2011 10:54:18 +0100 Subject: fix model, max_length to long for unique diff --git a/program/models.py b/program/models.py index 28a555b..78fc363 100644 --- a/program/models.py +++ b/program/models.py @@ -85,7 +85,7 @@ class Show(models.Model): showinformation = models.ManyToManyField(ShowInformation, blank=True, null=True, related_name='shows', verbose_name=_("Show information")) showtopic = models.ManyToManyField(ShowTopic, blank=True, null=True, related_name='shows', verbose_name=_("Show topic")) musicfocus = models.ManyToManyField(MusicFocus, blank=True, null=True, related_name='shows', verbose_name=_("Music focus")) - name = models.CharField(_("Name"), max_length=256, unique=True) + name = models.CharField(_("Name"), max_length=255, unique=True) slug = models.CharField(_("Slug"), max_length=255, unique=True) image = models.ImageField(_("Image"), blank=True, null=True, upload_to='show_images') short_description = models.CharField(_("Short description"), max_length=64) -- cgit v0.10.2