mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +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):
|
||||
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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user