Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

… the wording a bit more.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7387 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 502f0c18b040a0f9aba45a32d4a4155926342651 1 parent b8110ed
James Bennett authored March 30, 2008

Showing 1 changed file with 5 additions and 6 deletions. Show diff stats Hide diff stats

  1. 11  docs/newforms.txt
11  docs/newforms.txt
@@ -1552,12 +1552,11 @@ additional required argument:
1552 1552
 Allows the selection of a single model object, suitable for
1553 1553
 representing a foreign key.
1554 1554
 
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::
  1555
+The ``__unicode__`` method of the model will be called to generate
  1556
+string representations of the objects for use in the field's choices;
  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::
1561 1560
 
1562 1561
     class MyModelChoiceField(ModelChoiceField):
1563 1562
         def label_from_instance(self, obj):

0 notes on commit 502f0c1

Please sign in to comment.
Something went wrong with that request. Please try again.