Merge branch 'version-3.1' into model-serializer-api

This commit is contained in:
Tom Christie 2014-12-19 14:53:21 +00:00
commit 94883ae7cd

View File

@ -1216,7 +1216,7 @@ class ModelSerializer(Serializer):
class NestedSerializer(ModelSerializer):
class Meta:
model = relation_info.related
depth = nested_depth
depth = nested_depth - 1
return NestedSerializer
@ -1247,6 +1247,6 @@ class HyperlinkedModelSerializer(ModelSerializer):
class NestedSerializer(HyperlinkedModelSerializer):
class Meta:
model = relation_info.related
depth = nested_depth
depth = nested_depth - 1
return NestedSerializer