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.
Glossary: Django Beyond the Basics
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.