diff options
| author | Claude Paroz <claude@2xlibre.net> | 2013-07-04 15:19:33 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2013-07-05 19:30:08 +0200 |
| commit | a9dd6221af2148410c8a26dcbafd1ff8cc0fb107 (patch) | |
| tree | bc246344db3a47a6d2340bb6429bd0dbed0f8d20 /docs/ref/forms/api.txt | |
| parent | 430aae1b0db9fbcc15415b7bd9a14df1d88359cf (diff) | |
[1.6.x] Fixed #20224 -- Update docs examples which mention __unicode__
Thanks Marc Tamlyn and Tim Graham for the review.
Backport of 7442eb1a24 from master.
Diffstat (limited to 'docs/ref/forms/api.txt')
| -rw-r--r-- | docs/ref/forms/api.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt index aa19719a68..5d54e01c3d 100644 --- a/docs/ref/forms/api.txt +++ b/docs/ref/forms/api.txt @@ -566,7 +566,8 @@ Customizing the error list format By default, forms use ``django.forms.util.ErrorList`` to format validation errors. If you'd like to use an alternate class for displaying errors, you can -pass that in at construction time:: +pass that in at construction time (replace ``__unicode__`` by ``__str__`` on +Python 3):: >>> from django.forms.util import ErrorList >>> class DivErrorList(ErrorList): |
