Skip to content

Glossary: Django Beyond the Basics

SlugRelatedField

Also written: StringRelatedField

Serializer fields for related objects. `StringRelatedField` shows the object's `__str__`, and `SlugRelatedField` lets the app send or read a slug in place of an id.

Where the book teaches it

Related terms

ModelSerializer