diff options
| author | James Bennett <ubernostrum@gmail.com> | 2008-04-08 06:28:50 +0000 |
|---|---|---|
| committer | James Bennett <ubernostrum@gmail.com> | 2008-04-08 06:28:50 +0000 |
| commit | 25c0908ffdc9af2d73f8055c175e30ca82e1b981 (patch) | |
| tree | 944cae7c07eeda22e918cc9af51c565ef0efc48a /docs | |
| parent | 7fbea577e6c4de249c17727e635b2ccfc1804ad6 (diff) | |
Fix a minor typo in docs/newforms.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7408 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/newforms.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/newforms.txt b/docs/newforms.txt index d07f7f9dc3..20b413168b 100644 --- a/docs/newforms.txt +++ b/docs/newforms.txt @@ -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): |
