diff options
author | Parth Buch | 2012-07-16 17:13:03 +0530 |
---|---|---|
committer | Parth Buch | 2012-07-16 17:13:03 +0530 |
commit | 9ba70b7280dd1fb937c0194de974a3957ec59b31 (patch) | |
tree | 1555c1c2c8e81407e7b643b6dc01709985b8d907 /stapp | |
parent | 9deefce9369a963e77e16391185ab80b070d1a36 (diff) | |
download | stproject-9ba70b7280dd1fb937c0194de974a3957ec59b31.tar.gz stproject-9ba70b7280dd1fb937c0194de974a3957ec59b31.tar.bz2 stproject-9ba70b7280dd1fb937c0194de974a3957ec59b31.zip |
Changed thumbnail url to path while saving
Diffstat (limited to 'stapp')
-rw-r--r-- | stapp/video/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stapp/video/models.py b/stapp/video/models.py index f181f1b..20af47c 100644 --- a/stapp/video/models.py +++ b/stapp/video/models.py @@ -26,7 +26,7 @@ def handle_thumb(image_obj, thumb_obj, width, height): t.save(settings.MEDIA_ROOT + thumb, 'JPEG') os.chmod(settings.MEDIA_ROOT + thumb, 0666) - thumb_obj = image_obj.url + ('-small.jpg') + thumb_obj = image_obj.path + ('-small.jpg') #except: # pass return thumb_obj |