mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Fixed _force_text_recursive typo
This commit is contained in:
parent
a3f513c83c
commit
3ea1fe61a0
|
@ -28,7 +28,7 @@ def _force_text_recursive(data):
|
||||||
]
|
]
|
||||||
if isinstance(data, ReturnList):
|
if isinstance(data, ReturnList):
|
||||||
return ReturnList(ret, serializer=data.serializer)
|
return ReturnList(ret, serializer=data.serializer)
|
||||||
return data
|
return ret
|
||||||
elif isinstance(data, dict):
|
elif isinstance(data, dict):
|
||||||
ret = {
|
ret = {
|
||||||
key: _force_text_recursive(value)
|
key: _force_text_recursive(value)
|
||||||
|
@ -36,7 +36,7 @@ def _force_text_recursive(data):
|
||||||
}
|
}
|
||||||
if isinstance(data, ReturnDict):
|
if isinstance(data, ReturnDict):
|
||||||
return ReturnDict(ret, serializer=data.serializer)
|
return ReturnDict(ret, serializer=data.serializer)
|
||||||
return data
|
return ret
|
||||||
return force_text(data)
|
return force_text(data)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user