Re: ValidationError in Snippets tutorial

2018-05-07 Thread Xavier Ordoquy
Validation is only intended from external data (basic Python types) to more complex structures (Django models). This happens during deserialization. Here, you are already providing a complex model like it was basic Python types. In order to work this around, it should be: data = {

Custom additional Error Message along with 200 status code

2018-05-07 Thread vallabh vyas
Hi All, I am new to Django/ Django Rest Framework. I want custom message along with custom error message and status code 200 for ValidationError. Error message can be. 1. Email not found 2. Wrong password I had asked this question in stack someone had answered also. but i would like to