Changes between Version 6 and Version 7 of NewForms
- Timestamp:
- Jan 23, 2007, 3:30:09 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NewForms
v6 v7 29 29 30 30 * ''required'' -- Boolean that specifies whether the field is required. `True` by default. 31 * ''widget'' -- A Widget class, or instance of a Widget class, that should be used for this Field when displaying it. Each Field has a 32 * ''default'' -- Widget that it'll use if you don't specify this. In most cases, the default widget is !TextInput. 31 * ''widget'' -- A Widget class, or instance of a Widget class, that should be used for this Field when displaying it. Each Field has a default widget that it'll use if you don't specify this. In most cases, the default widget is !TextInput. 33 32 * ''label'' -- A verbose name for this field, for use in displaying this field in a form. By default, Django will use a "pretty" version of the form field name, if the Field is part of a Form. 34 33 * ''initial'' -- A value to use in this Field's initial display. This value is *not* used as a fallback if data isn't given.