Skip to content

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.

Where the book teaches it

Related terms

SerializerValidator