Permalink
Browse files

fix in form widget

  • Loading branch information...
Denys Chmeliuk
Denys Chmeliuk committed Apr 22, 2012
1 parent 2d93181 commit 1fa2497dfd3ef18e393df2a723f08fb74592ce9f
Showing with 1 addition and 1 deletion.
  1. +1 −1 cmsplugin_simple_gallery/forms.py
@@ -9,7 +9,7 @@ class AdminImageWidget(AdminFileWidget):
def render(self, name, value, attrs=None):
output = []
if value and getattr(value, "url", None):
- thumbnail = get_thumbnailer(value).thumbnailer.get_thumbnail_name(CMS_SIMPLEGALLERY_THUMBNAIL_OPTIONS)
+ thumbnail = get_thumbnailer(value).get_thumbnail_name(CMS_SIMPLEGALLERY_THUMBNAIL_OPTIONS)
image_url = settings.MEDIA_URL + thumbnail
file_name=str(value)
output.append(u' <a href="%s" target="_blank"><img src="%s" alt="%s" style="height: 100px;" /></a><br /> %s ' %\

0 comments on commit 1fa2497

Please sign in to comment.