Fixed #15657 -- added the required `form` parameter to the method signatures of `form_valid` and `form_invalid` in the `FormMixin` docs. Thanks to jnns for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15895 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Gabriel Hurley 2011-03-22 22:01:27 +00:00
parent a4ef094b0f
commit 66594beae7
1 changed files with 2 additions and 2 deletions

View File

@ -442,11 +442,11 @@ FormMixin
Determine the URL to redirect to when the form is successfully Determine the URL to redirect to when the form is successfully
validated. Returns :attr:`.success_url` by default. validated. Returns :attr:`.success_url` by default.
.. method:: form_valid() .. method:: form_valid(form)
Redirects to :meth:`.get_success_url`. Redirects to :meth:`.get_success_url`.
.. method:: form_invalid() .. method:: form_invalid(form)
Renders a response, providing the invalid form as context. Renders a response, providing the invalid form as context.