diff options
-rw-r--r-- | app/media/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/media/models.py b/app/media/models.py index 83a2c7a..48fe9c9 100644 --- a/app/media/models.py +++ b/app/media/models.py @@ -147,7 +147,7 @@ class LuxImage(models.Model): def get_image_url_by_size(self, size="original"): if size == "original": - return self.image.url + return "%soriginal/%s/%s.%s" % (settings.IMAGES_URL, self.pub_date.strftime("%Y"), self.image_name, self.image_ext) if size == "admin_insert": return "images/%s/%s.%s" % (self.pub_date.strftime("%Y"), self.image_name, self.image_ext) else: |