diff options
| author | James Bennett <ubernostrum@gmail.com> | 2008-03-30 04:23:54 +0000 |
|---|---|---|
| committer | James Bennett <ubernostrum@gmail.com> | 2008-03-30 04:23:54 +0000 |
| commit | 502f0c18b040a0f9aba45a32d4a4155926342651 (patch) | |
| tree | c8dbd2bc7529972308d23fac26713c22473e5749 /docs | |
| parent | b8110ed537408ef78027f70c242885c7a955e1bb (diff) | |
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
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/newforms.txt | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/docs/newforms.txt b/docs/newforms.txt index a2fe000073..d07f7f9dc3 100644 --- a/docs/newforms.txt +++ b/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): |
