Changeset 6802
- Timestamp:
- 12/01/07 13:26:51 (1 year ago)
- Files:
-
- django/trunk/docs/newforms.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/newforms.txt
r6786 r6802 1435 1435 compatibility. The preferred way to provide an error message is to use the 1436 1436 ``error_messages`` argument, passing a dictionary with ``'invalid'`` as a key 1437 and the error message as the value. 1437 and the error message as the value. 1438 1438 1439 1439 ``TimeField`` … … 1874 1874 * If the model field has ``choices`` set, then the form field's ``widget`` 1875 1875 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. 1881 1883 1882 1884 Finally, note that you can override the form field used for a given model
