diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2009-06-24 14:04:18 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2009-06-24 14:04:18 +0000 |
| commit | 970be97530e5eef5c872462e065be630c183847d (patch) | |
| tree | 3d6d3e8034f122c2e22b00c2711ce5bc8a37b9f2 /docs/ref | |
| parent | 78eb620c639b5bd2d91d8e02ecb61c8eb9d9a80a (diff) | |
Fixed #8861 -- Added note on the availability of ModelForm.instance. Thanks to Ramiro Morales for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11097 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index ec8b358974..64d9c52492 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -870,7 +870,7 @@ Adding custom validation to the admin ------------------------------------- Adding custom validation of data in the admin is quite easy. The automatic admin -interfaces reuses :mod:`django.forms`, and the ``ModelAdmin`` class gives you +interface reuses :mod:`django.forms`, and the ``ModelAdmin`` class gives you the ability define your own form:: class ArticleAdmin(admin.ModelAdmin): @@ -890,7 +890,9 @@ any field:: It is important you use a ``ModelForm`` here otherwise things can break. See the :ref:`forms <ref-forms-index>` documentation on :ref:`custom validation -<ref-forms-validation>` for more information. +<ref-forms-validation>` and, more specifically, the +:ref:`model form validation notes <overriding-modelform-clean-method>` for more +information. .. _admin-inlines: |
