We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2531998 commit 2095446Copy full SHA for 2095446
docs/api-guide/serializers.md
@@ -493,6 +493,8 @@ The names in the `fields` and `exclude` attributes will normally map to model fi
493
494
Alternatively names in the `fields` options can map to properties or methods which take no arguments that exist on the model class.
495
496
+Since version 3.3.0, it is **mandatory** to provide one of the attributes `fields` or `exclude`.
497
+
498
## Specifying nested serialization
499
500
The default `ModelSerializer` uses primary keys for relationships, but you can also easily generate nested representations using the `depth` option:
0 commit comments