Commit 5eca31d1 by Tom Christie

Merge pull request #1275 from qooleot/master

RelatedField is function of serializer class
parents 175b4d23 3399158d
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment