From 1645698dbfb28df3f246d37db3d3b6263ff792ca Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 4 Dec 2020 11:37:55 -0500 Subject: fixed a bug with image saving --- app/media/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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): -- cgit v1.2.3-70-g09d2