summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2011-11-04 16:33:18 +0000
committerAdrian Holovaty <adrian@holovaty.com>2011-11-04 16:33:18 +0000
commit64bfec38e266942de6cc47f48550740bc3a54ced (patch)
treeccc45344b712f9fc7269711a00e685741e97ecf0
parenta82488bf4b57c1bc917f8ed79eac7a99d5e26bff (diff)
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
-rw-r--r--docs/ref/class-based-views.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/class-based-views.txt b/docs/ref/class-based-views.txt
index 3c7f70f77d..692417eae2 100644
--- a/docs/ref/class-based-views.txt
+++ b/docs/ref/class-based-views.txt
@@ -491,7 +491,7 @@ ModelFormMixin
:attr:`~SingleObjectMixin.queryset` attributes, describing the type of
object that the ModelForm is manipulating. The view also provides
``self.object``, the instance being manipulated. If the instance is being
- created, ``self.object`` will be ``None``
+ created, ``self.object`` will be ``None``.
**Mixins**
@@ -527,7 +527,7 @@ ModelFormMixin
validated. Returns :attr:`FormMixin.success_url` if it is provided;
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
redirects to :meth:`.get_success_url`.