Missing `form` argument in FormMixin documentation
The documentations of FormMixin and ModelFormMixin seem to miss the form
argument that is required to execute both methods form_valid()
and form_invalid()
.
class FormMixin:
[…]
def form_valid(self, form):
return HttpResponseRedirect(self.get_success_url())
def form_invalid(self, form):
return self.render_to_response(self.get_context_data(form=form))
.. method:: form_valid()
Redirects to :meth:`.get_success_url`.
.. method:: form_invalid()
Renders a response, providing the invalid form as context.
Change History
(3)
Triage Stage: |
Unreviewed → Accepted
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
In [15895]: