summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2016-03-27 19:05:51 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2016-03-27 19:05:51 (GMT)
commitad67fdc73e0c25531431a6172b7d7e841ed027ae (patch)
treef8b050fb227e2e111d01b1a83ad6eacaebe9cb6d /program
parent43fa018afbade0085ffae9734eedd8de75a5fdf9 (diff)
restored blank & null for hosts
Diffstat (limited to 'program')
-rw-r--r--program/models.py10
1 files changed, 5 insertions, 5 deletions
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')