Skip to content

Commit a73d3c3

Browse files
verhoektomchristie
authored andcommitted
Elaborated on nested relationships (#7051)
1 parent 6196e9c commit a73d3c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/api-guide/relations.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,9 @@ This field is always read-only.
245245

246246
# Nested relationships
247247

248-
Nested relationships can be expressed by using serializers as fields.
248+
As opposed to previously discussed _references_ to another entity, the referred entity can instead also be embedded or _nested_
249+
in the representation of the object that refers to it.
250+
Such nested relationships can be expressed by using serializers as fields.
249251

250252
If the field is used to represent a to-many relationship, you should add the `many=True` flag to the serializer field.
251253

0 commit comments

Comments
 (0)