diff options
-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 |