skrevet views for bok og person

This commit is contained in:
2011-03-05 19:33:11 +00:00
parent 66908ccf02
commit e2dcdc460f
4 changed files with 26 additions and 4 deletions

View File

@@ -40,8 +40,8 @@ class Book(models.Model):
num_pages = models.IntegerField(null=True, blank=True)
series = models.ForeignKey(BookSeries, related_name='books', 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)
thumbnail = models.ImageField(upload_to='%Y/%m/%d/thumbnails', null=True, blank=True)
picture = models.ImageField(upload_to='pictures', null=True, blank=True)
thumbnail = models.ImageField(upload_to='thumbnails', null=True, blank=True)
# references = models.ManyToManyField(Reference, related_name='books',null=True, blank=True)
#Generate a string from book info