Fixed _force_text_recursive typo

This commit is contained in:
Kostya Esmukov 2016-02-07 18:58:19 +03:00
parent a3f513c83c
commit 3ea1fe61a0

View File

@ -28,7 +28,7 @@ def _force_text_recursive(data):
]
if isinstance(data, ReturnList):
return ReturnList(ret, serializer=data.serializer)
return data
return ret
elif isinstance(data, dict):
ret = {
key: _force_text_recursive(value)
@ -36,7 +36,7 @@ def _force_text_recursive(data):
}
if isinstance(data, ReturnDict):
return ReturnDict(ret, serializer=data.serializer)
return data
return ret
return force_text(data)