Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/api-guide/serializers.md
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,8 @@ The names in the `fields` and `exclude` attributes will normally map to model fi

Alternatively names in the `fields` options can map to properties or methods which take no arguments that exist on the model class.

Since version 3.3.0, it is **mandatory** to provide one of the attributes `fields` or `exclude`.

## Specifying nested serialization

The default `ModelSerializer` uses primary keys for relationships, but you can also easily generate nested representations using the `depth` option:
Expand Down