Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

modified exception validation in serializer #392

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dwisulfahnur
Copy link

I modified errors format in serializer authentication process.
from using serializers exception (serializers.ValidationError(msg)) to using rest_framework exception (exceptions.AuthenticationFailed(msg))

{"detail": "msg error"}
it will give an error message that more readable than
{"non_field_errros":["msg error"]}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant