Commit 25c0908f authored by James Bennett's avatar James Bennett
Browse files

Fix a minor typo in docs/newforms.txt


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7408 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 7fbea577
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1555,8 +1555,9 @@ representing a foreign key.
The ``__unicode__`` method of the model will be called to generate
string representations of the objects for use in the field's choices;
to provide customized representations, subclass ``ModelChoiceField``
and override ``label_for_model``. This method will receive model
object, and should return a string suitable for representing it::
and override ``label_for_model``. This method will receive a model
object, and should return a string suitable for representing it. For
example::

    class MyModelChoiceField(ModelChoiceField):
        def label_from_instance(self, obj):