diff options
Diffstat (limited to 'app/media')
-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 c266c4f..fe12a55 100644 --- a/app/media/models.py +++ b/app/media/models.py @@ -129,7 +129,7 @@ class LuxImage(models.Model): print(length) loopnum = 1 for size in self.sizes.all(): - srcset += "%s%s/%s_%s.%s %sw" % (settings.IMAGES_URL, self.pub_date.strftime("%Y"), self.image_name, size.name, self.image_ext, size.width) + srcset += "%s%s/%s_%s.%s %sw" % (settings.IMAGES_URL, self.pub_date.strftime("%Y"), self.image_name, size.slug, self.image_ext, size.width) if loopnum < length: srcset += ", " loopnum = loopnum+1 |