Changeset 5213
- Timestamp:
- 05/12/07 12:11:19 (2 years ago)
- Files:
-
- django/trunk/docs/newforms.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/newforms.txt
r5212 r5213 943 943 ``URLField`` ``URLField`` with ``verify_exists`` set 944 944 to the model field's ``verify_exists`` 945 ``USStateField`` ``CharField with ``widget=USStateSelect`` 945 ``USStateField`` ``CharField`` with 946 ``widget=USStateSelect`` 946 947 (``USStateSelect`` is from 947 948 ``django.contrib.localflavor.us``) … … 1095 1096 want that to be represented as a ``DateField`` in your form. But 1096 1097 ``form_for_model()`` gives you the flexibility of changing the form field type 1097 for a given model field. You do this by specifying a * formfield callback*.1098 for a given model field. You do this by specifying a **formfield callback**. 1098 1099 1099 1100 A formfield callback is a function that, when provided with a model field,
