Glossary: Django Beyond the Basics
validate_<field>()
Also written: validate_quantity
A serializer method that checks one field, like `clean_<field>` in a form. It returns the value, or raises `serializers.ValidationError` to give a 400 response.
Glossary: Django Beyond the Basics
Also written: validate_quantity
A serializer method that checks one field, like `clean_<field>` in a form. It returns the value, or raises `serializers.ValidationError` to give a 400 response.