From 9ba70b7280dd1fb937c0194de974a3957ec59b31 Mon Sep 17 00:00:00 2001 From: Parth Buch Date: Mon, 16 Jul 2012 17:13:03 +0530 Subject: Changed thumbnail url to path while saving --- stapp/video/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stapp') 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 -- cgit