1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #25548 -- Prevented FormView.form_invalid() from discarding its form argument.

This commit is contained in:
Alex Morozov
2015-11-10 16:06:59 +03:00
committed by Simon Charette
parent cc8c02fa0f
commit e171a83b15
4 changed files with 20 additions and 1 deletions

View File

@@ -83,7 +83,7 @@ class FormMixin(ContextMixin):
If the form is invalid, re-render the context data with the
data-filled form and errors.
"""
return self.render_to_response(self.get_context_data())
return self.render_to_response(self.get_context_data(form=form))
def get_context_data(self, **kwargs):
"""