summaryrefslogtreecommitdiff
path: root/app/jrnl/models.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-08-08 22:08:07 -0400
committerluxagraf <sng@luxagraf.net>2016-08-08 22:08:07 -0400
commit8c9cc1f84de2184187d04853cde1a1d4992d3bec (patch)
treefce1d9884fbc07525b80ce5a79e98bfa4d685488 /app/jrnl/models.py
parent0d1d8cb11dddb5df4cd076b018d62becf5a7a9f7 (diff)
changed image url on homepage to use cdn
Diffstat (limited to 'app/jrnl/models.py')
-rw-r--r--app/jrnl/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/jrnl/models.py b/app/jrnl/models.py
index da6d947..844db12 100644
--- a/app/jrnl/models.py
+++ b/app/jrnl/models.py
@@ -134,7 +134,7 @@ class Entry(models.Model):
def get_image_wide_url(self):
img = self.image.url.split('post-images/')[1].split('/')[1]
# return '%shome-images/%s' % (settings.IMAGES_URL, img)
- return '/media/images/home-images/%s' % (img)
+ return '%shome-images/%s' % (settings.IMAGES_URL, img)
def get_image_hero_url(self):
img = self.image.url.split('post-images/')[1].split('/')[1]