From ad67fdc73e0c25531431a6172b7d7e841ed027ae Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt Date: Sun, 27 Mar 2016 21:05:51 +0200 Subject: restored blank & null for hosts diff --git a/program/models.py b/program/models.py index db82377..e80385c 100644 --- a/program/models.py +++ b/program/models.py @@ -229,12 +229,12 @@ class Host(models.Model): class Show(models.Model): predecessor = models.ForeignKey('self', blank=True, null=True, related_name='successors', verbose_name=_("Predecessor")) - hosts = models.ManyToManyField(Host, related_name='shows', verbose_name=_("Hosts")) - owners = models.ManyToManyField(User, related_name='shows', verbose_name=_("Owners")) + hosts = models.ManyToManyField(Host, blank=True, null=True, related_name='shows', verbose_name=_("Hosts")) + owners = models.ManyToManyField(User, blank=True, null=True, related_name='shows', verbose_name=_("Owners")) broadcastformat = models.ForeignKey(BroadcastFormat, related_name='shows', verbose_name=_("Broadcast format")) - showinformation = models.ManyToManyField(ShowInformation, related_name='shows', verbose_name=_("Show information")) - showtopic = models.ManyToManyField(ShowTopic, related_name='shows', verbose_name=_("Show topic")) - musicfocus = models.ManyToManyField(MusicFocus, related_name='shows', verbose_name=_("Music focus")) + 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=255) slug = models.CharField(_("Slug"), max_length=255, unique=True) image = models.ImageField(_("Image"), blank=True, null=True, upload_to='show_images') -- cgit v0.10.2