Skip to content

Glossary: Django Beyond the Basics

read_only_fields

Also written: read_only=True

A serializer option that marks fields as output only, so incoming data cannot set them. It stops customers from marking an order `shipped`.

Where the book teaches it

Related terms

ModelSerializer