- return render_to_response('infopages/infopage.html', locals(), context_instance=RequestContext(request))
+ return render(
+ request,
+ 'infopages/infopage.html',
+ {
+ 'page': page,
+ 'left_column': left_column,
+ 'right_column': right_column,
+ 'active_menu_item': f'info:{slug}',
+ }
+ )