diff options
author | lxf <lxf@d1stkfactory> | 2014-05-21 18:21:03 +0000 |
---|---|---|
committer | lxf <lxf@d1stkfactory> | 2014-05-21 18:21:03 +0000 |
commit | f787e348df5aae0d53053b3e4cce3fb1ffbeccb2 (patch) | |
tree | 7976b716ae74cfec10e0f85481b2116b7799149e /app/blog/widgets.py | |
parent | 750746d3d6f3cd297902a8d8ccd5d7519a9956e0 (diff) |
additional fixes to run under python 3.2
Diffstat (limited to 'app/blog/widgets.py')
-rw-r--r-- | app/blog/widgets.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/blog/widgets.py b/app/blog/widgets.py index 33b2d9a..64509c2 100644 --- a/app/blog/widgets.py +++ b/app/blog/widgets.py @@ -8,7 +8,7 @@ import os def thumbnail(image_path): absolute_url = os.path.join(settings.IMAGES_URL, image_path[7:]) print(absolute_url) - return u'<img style="max-width: 400px" src="%s" alt="%s" />' % (absolute_url, image_path) + return '<img style="max-width: 400px" src="%s" alt="%s" />' % (absolute_url, image_path) class AdminImageWidget(AdminFileWidget): """ @@ -23,4 +23,4 @@ class AdminImageWidget(AdminFileWidget): output.append('<a target="_blank" href="%s">%s</a>' % (file_path, thumbnail(file_name))) output.append(super(AdminFileWidget, self).render(name, value, attrs)) - return mark_safe(u''.join(output)) + return mark_safe(''.join(output)) |