Browse files

Remove an extraneous comma that I left behind in [7386], and clean up…

… the wording a bit more.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent b8110ed commit 502f0c18b040a0f9aba45a32d4a4155926342651 @ubernostrum ubernostrum committed Mar 30, 2008
Showing with 5 additions and 6 deletions.
  1. +5 −6 docs/newforms.txt
@@ -1552,12 +1552,11 @@ additional required argument:
Allows the selection of a single model object, suitable for
representing a foreign key.
-The labels for the choice field call the ``__unicode__`` method of the
-model to generate string representations to use in the field's
-choices; to provide customized representations,, subclass
-``ModelChoiceField`` and override ``label_for_model``; this method
-will receive an object, and should return a string suitable for
-representing it::
+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::
class MyModelChoiceField(ModelChoiceField):
def label_from_instance(self, obj):

0 comments on commit 502f0c1

Please sign in to comment.