From cf5fb6a43bc06db42e9b96c8574442b7093fbf9e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Wed, 14 Aug 2013 15:16:21 +0200 Subject: [PATCH 1/1] Allow for empty catalogue.Book.project value in forms --- apps/catalogue/models/book.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/catalogue/models/book.py b/apps/catalogue/models/book.py index b1b2730f..7c2bccc4 100755 --- a/apps/catalogue/models/book.py +++ b/apps/catalogue/models/book.py @@ -29,7 +29,7 @@ class Book(models.Model): slug = models.SlugField(_('slug'), max_length=128, unique=True, db_index=True) public = models.BooleanField(_('public'), default=True, db_index=True) gallery = models.CharField(_('scan gallery name'), max_length=255, blank=True) - project = models.ForeignKey(Project, null=True) + project = models.ForeignKey(Project, null=True, blank=True) #wl_slug = models.CharField(_('title'), max_length=255, null=True, db_index=True, editable=False) parent = models.ForeignKey('self', null=True, blank=True, verbose_name=_('parent'), related_name="children", editable=False) -- 2.20.1