Django

Code

Changeset 7387

Show
Ignore:
Timestamp:
03/29/08 23:23:54 (5 months ago)
Author:
ubernostrum
Message:

Remove an extraneous comma that I left behind in [7386], and clean up the wording a bit more.

Files:

Legend:

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

    r7386 r7387  
    15531553representing a foreign key. 
    15541554 
    1555 The labels for the choice field call the ``__unicode__`` method of the 
    1556 model to generate string representations to use in the field's 
    1557 choices; to provide customized representations,, subclass 
    1558 ``ModelChoiceField`` and override ``label_for_model``; this method 
    1559 will receive an object, and should return a string suitable for 
    1560 representing it:: 
     1555The ``__unicode__`` method of the model will be called to generate 
     1556string representations of the objects for use in the field's choices; 
     1557to provide customized representations, subclass ``ModelChoiceField`` 
     1558and override ``label_for_model``. This method will receive model 
     1559object, and should return a string suitable for representing it:: 
    15611560 
    15621561    class MyModelChoiceField(ModelChoiceField):