summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/blog/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/blog/models.py b/apps/blog/models.py
index d93a3ff..7b01eb7 100644
--- a/apps/blog/models.py
+++ b/apps/blog/models.py
@@ -111,8 +111,8 @@ class Entry(models.Model):
return self.enable_comments and datetime.datetime.today() - datetime.timedelta(30) <= self.pub_date
def get_thumbnail_url(self):
- image_dir, img = self.thumbnail.url.split('post-thumbnail/')[1].split('/')
- return '%spost-thumbnail/%s/%s' %(settings.IMAGES_URL, image_dir, img)
+ image_dir, img = self.thumbnail.url.split('post-thumbs/')[1].split('/')
+ return '%spost-thumbs/%s/%s' %(settings.IMAGES_URL, image_dir, img)
def get_image_url(self):
image_dir, img = self.image.url.split('post-images/')[1].split('/')