Fix: missing blank = true
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 25 Jun 2013 12:59:24 +0000 (14:59 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 25 Jun 2013 12:59:24 +0000 (14:59 +0200)
apps/funding/models.py

index 0e05e1d..ba621d1 100644 (file)
@@ -29,7 +29,7 @@ class Offer(models.Model):
     book = models.ForeignKey(Book, null=True, blank=True,
         help_text=_('Published book.'))
     cover = models.ImageField(_('Cover'), upload_to = 'funding/covers')
-    poll = models.ForeignKey(Poll, help_text = _('Poll'),  null = True, on_delete = models.SET_NULL)
+    poll = models.ForeignKey(Poll, help_text = _('Poll'),  null = True, blank = True, on_delete = models.SET_NULL)
         
     def cover_img_tag(self):
         return u'<img src="%s" />' % self.cover.url