Changes between Initial Version and Version 2 of Ticket #21654


Ignore:
Timestamp:
Dec 22, 2013, 7:53:10 PM (11 years ago)
Author:
Simon Charette
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21654

    • Property Summary Better name for Form.as_data()Better name for `Form.errors.as_data()`
    • Property Type UncategorizedCleanup/optimization
  • Ticket #21654 – Description

    initial v2  
    33 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.
    44
    5 Is `form.as_dict()` a better name than `form.as_data()`?
     5Is `form.errors.as_dict()` a better name than `form.errors.as_data()`?
Back to Top