docs: Added missing 'form' argument to class-based-views.txt. Thanks, gabrielgrant

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17069 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2011-11-04 16:33:18 +00:00
parent a82488bf4b
commit 64bfec38e2
1 changed files with 2 additions and 2 deletions

View File

@ -491,7 +491,7 @@ ModelFormMixin
:attr:`~SingleObjectMixin.queryset` attributes, describing the type of :attr:`~SingleObjectMixin.queryset` attributes, describing the type of
object that the ModelForm is manipulating. The view also provides object that the ModelForm is manipulating. The view also provides
``self.object``, the instance being manipulated. If the instance is being ``self.object``, the instance being manipulated. If the instance is being
created, ``self.object`` will be ``None`` created, ``self.object`` will be ``None``.
**Mixins** **Mixins**
@ -527,7 +527,7 @@ ModelFormMixin
validated. Returns :attr:`FormMixin.success_url` if it is provided; validated. Returns :attr:`FormMixin.success_url` if it is provided;
otherwise, attempts to use the ``get_absolute_url()`` of the object. otherwise, attempts to use the ``get_absolute_url()`` of the object.
.. method:: form_valid() .. method:: form_valid(form)
Saves the form instance, sets the current object for the view, and Saves the form instance, sets the current object for the view, and
redirects to :meth:`.get_success_url`. redirects to :meth:`.get_success_url`.