Commit 5f1e9840 authored by fred's avatar fred

news category & episode can be empty

parent fb2afd36
......@@ -266,8 +266,8 @@ class NewsItem(models.Model):
image = models.ImageField(upload_to=get_newsitem_image_path, max_length=250, null=True, blank=True)
tags = TaggableManager(blank=True)
category = models.ForeignKey('NewsCategory', verbose_name=u'Category', null=True)
emission = models.ForeignKey('Emission', null=True)
category = models.ForeignKey('NewsCategory', verbose_name=u'Category', null=True, blank=True)
emission = models.ForeignKey('Emission', null=True, blank=True)
def __unicode__(self):
return self.title
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment