Another typo in docs/newforms.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7409 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
25c0908ffd
commit
1972f0522a
|
@ -1555,7 +1555,7 @@ representing a foreign key.
|
||||||
The ``__unicode__`` method of the model will be called to generate
|
The ``__unicode__`` method of the model will be called to generate
|
||||||
string representations of the objects for use in the field's choices;
|
string representations of the objects for use in the field's choices;
|
||||||
to provide customized representations, subclass ``ModelChoiceField``
|
to provide customized representations, subclass ``ModelChoiceField``
|
||||||
and override ``label_for_model``. This method will receive a model
|
and override ``label_from_instance``. This method will receive a model
|
||||||
object, and should return a string suitable for representing it. For
|
object, and should return a string suitable for representing it. For
|
||||||
example::
|
example::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue