Tillater nå blankt referansefelt
This commit is contained in:
parent
5ed2572cf6
commit
256561147a
|
@ -34,7 +34,7 @@ class Book(models.Model):
|
||||||
description = models.CharField(max_length=1023, null=True, blank=True)
|
description = models.CharField(max_length=1023, null=True, blank=True)
|
||||||
picture = models.ImageField(upload_to='%Y/%m/%d/pictures', 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)
|
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):
|
def full_print(self):
|
||||||
for field in book_fields.items():
|
for field in book_fields.items():
|
||||||
|
|
Reference in New Issue