- return render_to_response('pdcounter/author_detail.html', locals(),
- context_instance=RequestContext(request))
+ if request.EXPERIMENTS['layout'].value:
+ template_name = 'pdcounter/2022/author_detail.html'
+ else:
+ template_name = 'pdcounter/author_detail.html'
+
+ return render(request, template_name, {
+ 'author': author,
+ 'pd_counter': pd_counter,
+ 'form': form,
+ })