Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #6266: Added note to docs/modelforms.txt pointing out that they…

…'re just standard forms and have all the same methods as standard forms

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7305 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 855bc7b09d5f511fe7eb71e2f35cd0154451e357 1 parent cc08372
James Bennett authored March 18, 2008

Showing 1 changed file with 10 additions and 0 deletions. Show diff stats Hide diff stats

  1. 10  docs/modelforms.txt
10  docs/modelforms.txt
@@ -231,6 +231,16 @@ For example::
231 231
     # Create and save the new author instance. There's no need to do anything else.
232 232
     >>> new_author = f.save()
233 233
 
  234
+Other than the ``save()`` and ``save_m2m()`` methods, a ``ModelForm``
  235
+works exactly the same way as any other ``newforms`` form. For
  236
+example, the ``is_valid()`` method is used to check for validity, the
  237
+``is_multipart()`` method is used to determine whether a form requires
  238
+multipart file upload (and hence whether ``request.FILES`` must be
  239
+passed to the form), etc.; see `the standard newforms documentation`_
  240
+for more information.
  241
+
  242
+.. _the standard newforms documentation: ../newforms/
  243
+
234 244
 Using a subset of fields on the form
235 245
 ------------------------------------
236 246
 

0 notes on commit 855bc7b

Please sign in to comment.
Something went wrong with that request. Please try again.