diff options
| author | taras | 2013-12-08 11:40:40 -0500 |
|---|---|---|
| committer | taras | 2013-12-08 11:40:40 -0500 |
| commit | 3399158d62416af56201eac63cc20d8934f08de2 (patch) | |
| tree | 77f11858f0ddfe3013ad9c2497cb8b9a222e2ef6 /docs/api-guide/relations.md | |
| parent | 14ae3012545561337f4f3e4807361bb4ec2c9ec9 (diff) | |
| download | django-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.md | 2 |
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 |
