summaryrefslogtreecommitdiff
path: root/app/books/models.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2015-10-22 14:26:54 +0000
committerluxagraf <sng@luxagraf.net>2015-10-22 14:26:54 +0000
commitcab3e764123a5ed8d3d634bced9857c8989331b4 (patch)
tree6f50ddd325bf6b6da35c3d97fd45c8d4a30b6792 /app/books/models.py
parent30ff1913b5983be243286e8891bfb03790dda1d7 (diff)
did something to books models
Diffstat (limited to 'app/books/models.py')
-rw-r--r--app/books/models.py2
1 files changed, 1 insertions, 1 deletions
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',)