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:
committed by
Simon Charette
parent
cc8c02fa0f
commit
e171a83b15
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user