Merge pull request #1275 from qooleot/master

RelatedField is function of serializer class
This commit is contained in:
Tom Christie 2013-12-08 23:46:55 -08:00
commit 5eca31d161

View File

@ -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