From 256561147adca4291471894ad7939c85b29ae78d Mon Sep 17 00:00:00 2001 From: almelid Date: Fri, 4 Mar 2011 14:22:06 +0000 Subject: [PATCH] =?UTF-8?q?Tillater=20n=C3=A5=20blankt=20referansefelt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/web/library/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/web/library/models.py b/python/web/library/models.py index 05189e1..1340ab3 100644 --- a/python/web/library/models.py +++ b/python/web/library/models.py @@ -34,7 +34,7 @@ class Book(models.Model): description = models.CharField(max_length=1023, null=True, blank=True) picture = models.ImageField(upload_to='%Y/%m/%d/pictures', null=True, blank=True) thumbnail = models.ImageField(upload_to='%Y/%m/%d/thumbnails', null=True, blank=True) - references = models.ManyToManyField(Reference, related_name='books') + references = models.ManyToManyField(Reference, related_name='books',null=True, blank=True) def full_print(self): for field in book_fields.items():