﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
15657	Missing `form` argument in FormMixin documentation	Jannis Vajen	nobody	"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.
}}}


"		closed	Documentation	dev		fixed			Accepted	0	0	0	0	0	0
