#27922 closed New feature (fixed)
Add ErrorDict.get_json_data() method
Description ¶
This makes ErrorDict behave the same as ErrorList. ErrorDict.get_json_data() is useful when incorporating form validation errors inside a larger JSON response, where the JSON string output from ErrorDict.as_json() would not be appropriate.
Tests and docs have been updated to include the new function.
Change History (5)
comment:1 by , 8 years ago
Patch needs improvement: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 8 years ago
I've added release notes to the 2.0 release document, and a versionadded: 2.0 note to the docs.
comment:3 by , 8 years ago
Patch needs improvement: | unset |
---|
Is there anything else that needs adding to this patch?
Note:
See TracTickets
for help on using tickets.
Seems okay at first glance. Please review your patch using the PatchReviewChecklist as a few requirements such as release notes and versionadded annotations are missing.