#23865 closed Cleanup/optimization (fixed)
Document raising a `ValidationError` with a dictionary
| Reported by: | Alasdair Nicol | Owned by: | nobody |
|---|---|---|---|
| Component: | Documentation | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Ticket #16986 allows you to report errors on individual fields by instantiating a ValidationError with a dictionary. However, this technique is an undocumented private API, and not mentioned in the Model.clean docs.
I started a thread on Django developers
Change History (5)
comment:1 by , 11 years ago
| Has patch: | set |
|---|
comment:2 by , 11 years ago
comment:3 by , 11 years ago
| Triage Stage: | Unreviewed → Ready for checkin |
|---|---|
| Type: | Uncategorized → Cleanup/optimization |
PR seems merge-ready to me. There's been some discussion on the ML thread; I'll wait a bit for merge to see if Loic or Anssi or anyone else wants to weigh in on the PR.
comment:4 by , 11 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Pull request is at https://github.com/django/django/pull/3573