diff options
Diffstat (limited to 'app/utils/widgets.py')
-rw-r--r-- | app/utils/widgets.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/utils/widgets.py b/app/utils/widgets.py index 4f96e38..3c97b12 100644 --- a/app/utils/widgets.py +++ b/app/utils/widgets.py @@ -158,8 +158,7 @@ def parse_image(s): print('caption'+str(caption)) else: css_class = cl[0] - c = Context({'image': i, 'caption': caption, 'exif': exif, 'cluster_class': cluster_class, 'extra':extra}) - return render_to_string("lib/img_%s.html" % css_class, c) + return render_to_string("lib/img_%s.html" % css_class, {'image': i, 'caption': caption, 'exif': exif, 'cluster_class': cluster_class, 'extra':extra}) def parse_video(s): |