From 65312b9a798215fa27a389cb60ca00cd616e15b0 Mon Sep 17 00:00:00 2001 From: Gitea Date: Sat, 14 Aug 2021 20:57:11 -0400 Subject: books: fixed a path error on image upload --- app/books/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/books/models.py b/app/books/models.py index aa321e1..2ebc769 100644 --- a/app/books/models.py +++ b/app/books/models.py @@ -17,7 +17,7 @@ from utils.util import markdown_to_html def get_upload_path(self, filename): - return "%s/%s" % (settings.IMAGES_ROOT, filename) + return "wandrenbooks.net/media/images/book-covers/%s" % (filename) class Book(Orderable): -- cgit v1.2.3-70-g09d2