mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #20224 -- Update docs examples which mention __unicode__
Thanks Marc Tamlyn and Tim Graham for the review.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user