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 = {
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