aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide/relations.md
diff options
context:
space:
mode:
authortaras2013-12-08 11:40:40 -0500
committertaras2013-12-08 11:40:40 -0500
commit3399158d62416af56201eac63cc20d8934f08de2 (patch)
tree77f11858f0ddfe3013ad9c2497cb8b9a222e2ef6 /docs/api-guide/relations.md
parent14ae3012545561337f4f3e4807361bb4ec2c9ec9 (diff)
downloaddjango-rest-framework-3399158d62416af56201eac63cc20d8934f08de2.tar.bz2
RelatedField is function of serializer class
Diffstat (limited to 'docs/api-guide/relations.md')
-rw-r--r--docs/api-guide/relations.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api-guide/relations.md b/docs/api-guide/relations.md
index b9d96b5e..556429bb 100644
--- a/docs/api-guide/relations.md
+++ b/docs/api-guide/relations.md
@@ -44,7 +44,7 @@ In order to explain the various types of relational fields, we'll use a couple o
For example, the following serializer.
class AlbumSerializer(serializers.ModelSerializer):
- tracks = RelatedField(many=True)
+ tracks = serializers.RelatedField(many=True)
class Meta:
model = Album