From 99a23d820bc0abd93aa55ab53f0c8f1a5598175f Mon Sep 17 00:00:00 2001
From: luxagraf <sng@luxagraf.net>
Date: Fri, 18 Nov 2016 08:25:22 -0500
Subject: photo parser now creates size if it doesn't exist and picwide within
 image clusters gets responsive images

---
 app/utils/widgets.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'app/utils')

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):
-- 
cgit v1.2.3-70-g09d2