summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTimo Graham <timograham@gmail.com>2011-06-04 21:42:53 +0000
committerTimo Graham <timograham@gmail.com>2011-06-04 21:42:53 +0000
commitfc508fd5d2257d02947942adf9eeadca61d000c4 (patch)
tree39b69e3c64c0901172cd5d2ebbd44a8a845e666b /docs
parent070151293d474d01324d95fc858b1148aaaf5091 (diff)
Fixed #15990 - Simplified a sentence regarding form validation for ModelForms; thanks jblaine for the suggestion.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16329 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/forms/modelforms.txt13
1 files changed, 5 insertions, 8 deletions
diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt
index 99164ecdae..6d418a22b9 100644
--- a/docs/topics/forms/modelforms.txt
+++ b/docs/topics/forms/modelforms.txt
@@ -195,14 +195,11 @@ we'll discuss in a moment.)::
The ``is_valid()`` method and ``errors``
----------------------------------------
-.. versionchanged:: 1.2
-
The first time you call ``is_valid()`` or access the ``errors`` attribute of a
-``ModelForm`` has always triggered form validation, but as of Django 1.2, it
-will also trigger :ref:`model validation <validating-objects>`. This has the
-side-effect of cleaning the model you pass to the ``ModelForm`` constructor.
-For instance, calling ``is_valid()`` on your form will convert any date fields
-on your model to actual date objects.
+``ModelForm`` triggers form validation as well as :ref:`model validation
+<validating-objects>`. This has the side-effect of cleaning the model you pass
+to the ``ModelForm`` constructor. For instance, calling ``is_valid()`` on your
+form will convert any date fields on your model to actual date objects.
The ``save()`` method
@@ -359,7 +356,7 @@ Overriding the default field types or widgets
---------------------------------------------
.. versionadded:: 1.2
- The ``widgets`` attribute is new in Django 1.2.
+ The ``widgets`` attribute is new in Django 1.2.
The default field types, as described in the `Field types`_ table above, are
sensible defaults. If you have a ``DateField`` in your model, chances are you'd