summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitea <gitea@fake.local>2021-08-14 20:57:11 -0400
committerGitea <gitea@fake.local>2021-08-14 20:57:11 -0400
commit65312b9a798215fa27a389cb60ca00cd616e15b0 (patch)
tree55d2fb9aabcf0aeda787d17baeead79429eb71c0
parent7f2b0c4230398db35b1cbfffdd640dbb3f0750b4 (diff)
books: fixed a path error on image upload
-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 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):