X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..7b97c4af7aee7f66f628256eb39f53f59bb10cf0:/src/infopages/views.py diff --git a/src/infopages/views.py b/src/infopages/views.py index d5dee7630..4d1731fa0 100644 --- a/src/infopages/views.py +++ b/src/infopages/views.py @@ -19,7 +19,10 @@ def infopage(request, slug): 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_columns': right_column, + }, context_instance=RequestContext(request))