#23865: Document raising a `ValidationError` with a dictionary
-------------------------------------+-------------------------------------
Reporter: alasdairnicol | Owner: nobody
Type: | Status: closed
Cleanup/optimization | Version: master
Component: Documentation | Resolution: fixed
Severity: Normal | Triage Stage: Ready for
Keywords: | checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Tim Graham <timograham@…>):
In [changeset:"f91c6ecc223dbed05f6640af515e8b56895170ac"]:
{{{
#!CommitTicketReference repository=""
revision="f91c6ecc223dbed05f6640af515e8b56895170ac"
[1.7.x] Fixed #23865 -- documented how to assign errors to a field in
Model.clean()
Also added a unit test wit the simpler syntax which we have documented,
where the dictionary values are strings.
Backport of 5b26a014a81ba0d404d46e11d2b45c01d92b97e5 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23865#comment:5>
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/071.abc51d9a76b5ef368844cb2fde050129%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.