Django

Code

Changeset 7305

Show
Ignore:
Timestamp:
03/18/08 16:13:12 (8 months ago)
Author:
ubernostrum
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/modelforms.txt

    r7294 r7305  
    232232    >>> new_author = f.save() 
    233233 
     234Other than the ``save()`` and ``save_m2m()`` methods, a ``ModelForm`` 
     235works exactly the same way as any other ``newforms`` form. For 
     236example, the ``is_valid()`` method is used to check for validity, the 
     237``is_multipart()`` method is used to determine whether a form requires 
     238multipart file upload (and hence whether ``request.FILES`` must be 
     239passed to the form), etc.; see `the standard newforms documentation`_ 
     240for more information. 
     241 
     242.. _the standard newforms documentation: ../newforms/ 
     243 
    234244Using a subset of fields on the form 
    235245------------------------------------