Opened 10 years ago

Last modified 10 years ago

#21654 closed Cleanup/optimization

Better name for Form.as_data() — at Initial Version

Reported by: Selwin Ong Owned by: nobody
Component: Documentation Version: dev
Severity: Normal Keywords:
Cc: loic@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

From Django 1.7's release notes:

The dict-like attribute errors now has two new methods as_data() and as_json(). The former returns a dict that maps fields to their original errors, complete with all metadata (error code and params), the latter returns the errors serialized as json.

Is form.as_dict() a better name than form.as_data()?

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top