Changes between Initial Version and Version 1 of Ticket #29318, comment 2
- Timestamp:
- Apr 12, 2018, 2:01:56 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29318, comment 2
initial v1 6 6 }}} 7 7 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.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.