summaryrefslogtreecommitdiff
path: root/app/media
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-12-04 11:37:55 -0500
committerluxagraf <sng@luxagraf.net>2020-12-04 11:37:55 -0500
commit1645698dbfb28df3f246d37db3d3b6263ff792ca (patch)
tree314057d32a6884e67f0af9f1d2ab64888842a234 /app/media
parentedf63a6a55897b7df19b216de1db6d114a6c15c2 (diff)
fixed a bug with image saving
Diffstat (limited to 'app/media')
-rw-r--r--app/media/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/media/models.py b/app/media/models.py
index f2a74bc..89e710a 100644
--- a/app/media/models.py
+++ b/app/media/models.py
@@ -159,7 +159,7 @@ class LuxImage(models.Model):
return self.image.path
else:
luximagesize = LuxImageSize.objects.get(slug=size)
- return "%s%s/%s_%s.%s" % (settings.IMAGES_ROOT, self.pub_date.strftime("%Y"), self.image_name, luximagesize.slug, self.image_ext)
+ return "%s/%s/%s_%s.%s" % (settings.IMAGES_ROOT, self.pub_date.strftime("%Y"), self.image_name, luximagesize.slug, self.image_ext)
@cached_property
def get_thumbnail_url(self):