Elaborated on nested relationships (#7051)

This commit is contained in:
Hendrik 2019-11-18 13:35:36 +01:00 committed by Tom Christie
parent 6196e9c8cd
commit a73d3c309f

View File

@ -245,7 +245,9 @@ This field is always read-only.
# Nested relationships
Nested relationships can be expressed by using serializers as fields.
As opposed to previously discussed _references_ to another entity, the referred entity can instead also be embedded or _nested_
in the representation of the object that refers to it.
Such nested relationships can be expressed by using serializers as fields.
If the field is used to represent a to-many relationship, you should add the `many=True` flag to the serializer field.