Changeset 7408
- Timestamp:
- 04/08/08 01:28:50 (3 months ago)
- Files:
-
- django/trunk/docs/newforms.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/newforms.txt
r7387 r7408 1556 1556 string representations of the objects for use in the field's choices; 1557 1557 to provide customized representations, subclass ``ModelChoiceField`` 1558 and override ``label_for_model``. This method will receive model 1559 object, and should return a string suitable for representing it:: 1558 and override ``label_for_model``. This method will receive a model 1559 object, and should return a string suitable for representing it. For 1560 example:: 1560 1561 1561 1562 class MyModelChoiceField(ModelChoiceField):
