From 2e241df25d54370b5288c42e99907e1239c5098c Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt Date: Tue, 1 Nov 2011 15:53:26 +0100 Subject: made name of Show unique diff --git a/program/models.py b/program/models.py index ee881bc..28a555b 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) + name = models.CharField(_("Name"), max_length=256, 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