diff options
| author | Tom Christie | 2013-12-08 23:46:55 -0800 |
|---|---|---|
| committer | Tom Christie | 2013-12-08 23:46:55 -0800 |
| commit | 5eca31d161181a9f53e60d3fe04cdbdfacf8ff9d (patch) | |
| tree | 04d5357a56ec0585f23fdac85fc0611837ed0fbd | |
| parent | 175b4d233d578b5964db72f91a96bb3b4a0f3e99 (diff) | |
| parent | 3399158d62416af56201eac63cc20d8934f08de2 (diff) | |
| download | django-rest-framework-5eca31d161181a9f53e60d3fe04cdbdfacf8ff9d.tar.bz2 | |
Merge pull request #1275 from qooleot/master
RelatedField is function of serializer class
| -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 |
