Open bendavis78 opened 6 years ago
The call to serializer.is_valid() in the view should raise an exception. In DRF, most is_valid calls are written as serializer.is_valid(raise_exception=True). This allows custom error handlers to be used via the EXCEPTION_HANDLER setting.
serializer.is_valid()
is_valid
serializer.is_valid(raise_exception=True)
EXCEPTION_HANDLER
See https://github.com/GetBlimp/django-rest-framework-jwt/pull/374.
The call to
serializer.is_valid()
in the view should raise an exception. In DRF, mostis_valid
calls are written asserializer.is_valid(raise_exception=True)
. This allows custom error handlers to be used via theEXCEPTION_HANDLER
setting.