diff options
author | luxagraf <sng@luxagraf.net> | 2011-01-20 17:27:34 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2011-01-20 17:27:34 -0600 |
commit | 6dca31fffb9dd52014a85e01c30a142b933d86ef (patch) | |
tree | 46aabfc9fc34d74a6829eca10d6ded46dfd25e88 /apps/blog | |
parent | 5a358a9ad5fc93c0db894e5e075b992f8b4e0cbd (diff) |
fixed paths in cron script and bugs in blog models, got rid of flatpages
Diffstat (limited to 'apps/blog')
-rw-r--r-- | apps/blog/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/blog/models.py b/apps/blog/models.py index 85f105f..ff510f7 100644 --- a/apps/blog/models.py +++ b/apps/blog/models.py @@ -115,8 +115,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-thumbs/')[1].split('/') - return '%spost-thumbs/%s/%s' %(settings.IMAGES_URL, image_dir, img) + image_dir, img = self.thumbnail.url.split('post-thumbnail/')[1].split('/') + return '%spost-thumbnail/%s/%s' %(settings.IMAGES_URL, image_dir, img) def get_image_url(self): image_dir, img = self.image.url.split('post-images/')[1].split('/') |