Changes between Initial Version and Version 1 of Ticket #29318, comment 2


Ignore:
Timestamp:
Apr 12, 2018, 2:01:56 AM (6 years ago)
Author:
Michael Käufl

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29318, comment 2

    initial v1  
    66}}}
    77
    8 We use these exceptions not only for the admin, but also for API error messages through django rest framework's [http://www.django-rest-framework.org/api-guide/exceptions/#custom-exception-handling custom exception handling].  This is also the reason, why we use the field's name in some other (therefore non-generic) validators.  Using the field's name as key in the error_dict, allows our front-end to display the error message at the affected field and not as a generic error message of the form.
     8We use these exceptions not only for the admin, but also for API error messages through django rest framework's [http://www.django-rest-framework.org/api-guide/exceptions/#custom-exception-handling custom exception handling].  This is also the reason, why we use the field's name in some other (therefore non-generic) validators.  Using the field's name as key in the error_dict allows our front-end to display the error message at the affected field and not as a generic error message of the form.
Back to Top