-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Make serializers.ValidationError compatible with Django ValidationError #8077
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Milestone
Comments
antonchasnyk
added a commit
to antonchasnyk/django-rest-framework
that referenced
this issue
Aug 10, 2021
antonchasnyk
added a commit
to antonchasnyk/django-rest-framework
that referenced
this issue
Aug 11, 2021
antonchasnyk
added a commit
to antonchasnyk/django-rest-framework
that referenced
this issue
Aug 11, 2021
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@Ehsan200 should we close this? or you have something more to work on this issue? |
@auvipy i think we're good; we can close this issue for now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Django Rest Framework ValidationError in rest_framework.exceptions has the following constructor:
Django original ValidationError in django.core.exceptions has the following constructor:
The difference is subtle and obscure, especially for a beginner that read the Django documentation on how to properly write a ValidationError exception https://docs.djangoproject.com/en/3.2/ref/forms/validation/#raising-validationerror
. I spent an hour trying to figure out why Django "proper way" of writing a validation exception was not working for me
The text was updated successfully, but these errors were encountered: