Django - DRF Advanced Features
Which of the following is the correct syntax to raise a validation error inside a serializer's
validate method?validate method?raise serializers.ValidationError('message') to stop validation and return an error.print does not raise errors; ValidationError without serializers prefix may cause import errors.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions