Django

Code

Changeset 6802

Show
Ignore:
Timestamp:
12/01/07 13:26:51 (1 year ago)
Author:
adrian
Message:

Edited docs/newforms.txt changes from [6733]

Files:

Legend:

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

    r6786 r6802  
    14351435compatibility. The preferred way to provide an error message is to use the 
    14361436``error_messages`` argument, passing a dictionary with ``'invalid'`` as a key 
    1437 and the error message as the value.  
     1437and the error message as the value. 
    14381438 
    14391439``TimeField`` 
     
    18741874    * If the model field has ``choices`` set, then the form field's ``widget`` 
    18751875      will be set to ``Select``, with choices coming from the model field's 
    1876       ``choices``. The choices will normally include the blank choice which is 
    1877       selected by default. If the field is required, this forces the user to 
    1878       make a selection. The blank choice will not be included if the model 
    1879       field has ``blank=False`` and an explicit ``default`` value (the 
    1880       ``default`` value will be initially selected instead). 
     1876      ``choices``. 
     1877 
     1878      The choices will include the "blank" choice, which is selected by 
     1879      default. If the field is required, this forces the user to make a 
     1880      selection. The blank choice will not be included if the model 
     1881      field has ``blank=False`` and an explicit ``default`` value, in which 
     1882      case the ``default`` value will be initially selected instead. 
    18811883 
    18821884Finally, note that you can override the form field used for a given model