Changes between Initial Version and Version 2 of Ticket #21654
- Timestamp:
- Dec 22, 2013, 7:53:10 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #21654
- Property Summary Better name for Form.as_data() → Better name for `Form.errors.as_data()`
- Property Type Uncategorized → Cleanup/optimization
-
Ticket #21654 – Description
initial v2 3 3 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. 4 4 5 Is `form. as_dict()` a better name than `form.as_data()`?5 Is `form.errors.as_dict()` a better name than `form.errors.as_data()`?