def get(self, request, *args, **kwargs):
    form_class = self.get_form_class()
form = self.get_form(form_class)
return self.render_to_response(self.get_context_data(form=form))
Updating context data in FormView form_valid method?