- return render_to_response('pdcounter/author_detail.html', locals(), context_instance=RequestContext(request))
+ template_name = 'pdcounter/2022/author_detail.html'
+
+ return render(request, template_name, {
+ 'author': author,
+ 'pd_counter': pd_counter,
+ 'form': form,
+ })