Changes between Initial Version and Version 1 of Ticket #21654, comment 10
- Timestamp:
- Jan 14, 2014, 1:20:56 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #21654, comment 10
initial v1 1 - `as_data()` returns the `ValidationError` instances, you need that if you want to do anything meaningful with the errors other than just displaying it.1 - `as_data()` returns the `ValidationError` instances, you need that if you want to do anything meaningful with the errors other than just displaying them. 2 2 3 3 - `form.errors` returns the **rendered** errors which are basically blobs of text. At that point all the metadata is gone, no error code, no params, and the string has already been translated. All you can do is display this text; you can't manipulate it since you can't identify the individual errors anymore, especially if translation is involved.