Skip to content
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

Add Validations #3

Open
RiflerRick opened this issue Mar 12, 2018 · 0 comments
Open

Add Validations #3

RiflerRick opened this issue Mar 12, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@RiflerRick
Copy link
Contributor

@Zaiku1972 there are serializer validations to be added, basically wherever you think there is a possibility of an exception, add a serializer validation
somewhat like...

from rest_framework import serializers
# if validation error is to be raised
raise serializers.ValidationError("msg to be responded with")

note that this is only an example. There are more sophisticated means of raising validation errors

@RiflerRick RiflerRick added the enhancement New feature or request label Mar 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants