From cab3e764123a5ed8d3d634bced9857c8989331b4 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 22 Oct 2015 14:26:54 +0000 Subject: did something to books models --- app/books/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/books') diff --git a/app/books/models.py b/app/books/models.py index f31edce..1464c78 100644 --- a/app/books/models.py +++ b/app/books/models.py @@ -30,7 +30,7 @@ class Book(models.Model): ) rating = models.CharField(max_length=1, choices=RATINGS, null=True, blank=True) enable_comments = models.BooleanField(default=False) - image = models.FileField(upload_to='book-covers/', null=True, blank=True) + image = models.FileField(upload_to="%s/%s" % (settings.IMAGES_ROOT, 'book-covers/'), null=True, blank=True) class Meta: ordering = ('-read_date',) -- cgit v1.2.3-70-g09d2