summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-11-01 14:53:26 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-11-01 14:53:26 (GMT)
commit2e241df25d54370b5288c42e99907e1239c5098c (patch)
treeedea6588f3ded42876b8144e254a1fe56e5838f8 /program
parent3eafce808d8db149d5dde5f1942f7dd9c8b2f349 (diff)
made name of Show unique
Diffstat (limited to 'program')
-rw-r--r--program/models.py2
1 files changed, 1 insertions, 1 deletions
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)