anchor filter-books param parts at word beginning
[wolnelektury.git] / src / infopages / views.py
index d5dee76..9f21ed7 100644 (file)
@@ -19,7 +19,10 @@ def infopage(request, slug):
     try:
         right_column = Template(page.right_column).render(rc)
     except TemplateSyntaxError:
     try:
         right_column = Template(page.right_column).render(rc)
     except TemplateSyntaxError:
-        left_column = ''
+        right_column = ''
 
 
-    return render_to_response('infopages/infopage.html', locals(),
-                context_instance=RequestContext(request))
+    return render_to_response('infopages/infopage.html', {
+        'page': page,
+        'left_column': left_column,
+        'right_column': right_column,
+    }, context_instance=RequestContext(request))