diff options
| author | Joseph Kocherhans <joseph@jkocherhans.com> | 2008-03-22 19:20:19 +0000 |
|---|---|---|
| committer | Joseph Kocherhans <joseph@jkocherhans.com> | 2008-03-22 19:20:19 +0000 |
| commit | 1d46d20038a8473fc2e75f832c770f17d558d0fc (patch) | |
| tree | 0d233d922f1757bbaeb04a2969c4392cb4191d9c /docs/modelforms.txt | |
| parent | 7aa851c05d80ef75581975939ff5c48b87bcae08 (diff) | |
newforms-admin: Merged from trunk up to [7350].
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7351 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/modelforms.txt')
| -rw-r--r-- | docs/modelforms.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/modelforms.txt b/docs/modelforms.txt index 47eaa9a769..05f9b1b3d4 100644 --- a/docs/modelforms.txt +++ b/docs/modelforms.txt @@ -231,6 +231,16 @@ For example:: # Create and save the new author instance. There's no need to do anything else. >>> new_author = f.save() +Other than the ``save()`` and ``save_m2m()`` methods, a ``ModelForm`` +works exactly the same way as any other ``newforms`` form. For +example, the ``is_valid()`` method is used to check for validity, the +``is_multipart()`` method is used to determine whether a form requires +multipart file upload (and hence whether ``request.FILES`` must be +passed to the form), etc.; see `the standard newforms documentation`_ +for more information. + +.. _the standard newforms documentation: ../newforms/ + Using a subset of fields on the form ------------------------------------ |
