Changes between Initial Version and Version 1 of Ticket #21654, comment 10


Ignore:
Timestamp:
Jan 14, 2014, 1:20:56 PM (11 years ago)
Author:
loic84

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.
    22
    33- `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.
Back to Top