Use UpdateView instead of TemplateView.