#5335: Add an append method to ErrorDict
-------------------------------------+-------------------------------------
Reporter: Thomas Güttler | Owner:
<hv@…> | jkocherhans
Type: New feature | Status: new
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: append errodict | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by loic84):
The problem is that `ErrorDict` should be `ErrorList` agnostic. The latest
patch hardcodes the `ErrorList` type which can be customized at the form
level with the `error_class` argument of `Form.__init__()` .
The `Form.add_errors()` method discussed
[https://code.djangoproject.com/ticket/20867#comment:4 here] is IMO a much
better approach.
--
Ticket URL: <https://code.djangoproject.com/ticket/5335#comment:27>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/089.750be6201b4adb2553764d6ac54db7b2%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.