python3.4 compatibility
This commit is contained in:
parent
7ea4a1bd21
commit
742bd3cce0
1 changed files with 1 additions and 1 deletions
|
@ -43,4 +43,4 @@ class RecursiveSerializerMixin(serializers.Serializer):
|
||||||
def recursive_value(self, serializer, obj, *args, **kwargs):
|
def recursive_value(self, serializer, obj, *args, **kwargs):
|
||||||
if self.context.get('sparse'):
|
if self.context.get('sparse'):
|
||||||
return PkField().to_representation(obj)
|
return PkField().to_representation(obj)
|
||||||
return serializer(obj, *args, **kwargs, context=self.sparse_context()).data
|
return serializer(obj, context=self.sparse_context(), *args, **kwargs).data
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue