Django

Code

Changeset 6944

Show
Ignore:
Timestamp:
12/18/07 21:39:21 (9 months ago)
Author:
adrian
Message:

Added note to docs/form_for_model.txt (from [6844]) explaining this is deprecated in favor of ModelForms?

Files:

Legend:

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

    r6844 r6944  
    11Generating forms for models 
    22=========================== 
     3 
     4.. admonition:: Note 
     5 
     6    The APIs described in this document have been deprecated. If you're 
     7    developing new code, use `ModelForms`_ instead. 
     8 
     9.. _ModelForms: ../modelforms/ 
    310 
    411If you're building a database-driven app, chances are you'll have forms that 
  • django/trunk/docs/modelforms.txt

    r6915 r6944  
    278278    To avoid this failure, you must instantiate your model with initial values 
    279279    for the missing, but required fields, or use ``save(commit=False)`` and 
    280     manually set anyextra required fields:: 
     280    manually set any extra required fields:: 
    281281     
    282282        instance = Instance(required_field='value') 
     
    297297 
    298298The default field types, as described in the "Field types" table above, are 
    299 sensible defaults; if you have a ``DateField`` in your model, chances are you'd 
     299sensible defaults. If you have a ``DateField`` in your model, chances are you'd 
    300300want that to be represented as a ``DateField`` in your form. But 
    301301``ModelForm`` gives you the flexibility of changing the form field type