mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-03 13:14:30 +03:00
Ack. Use unicode not str in modelresource
This commit is contained in:
parent
09a8b9627a
commit
aad7eacce6
|
@ -124,7 +124,7 @@ class ModelResource(Resource, ModelFormValidatorMixin):
|
||||||
if inspect.ismethod(f) and len(inspect.getargspec(f)[0]) == 1:
|
if inspect.ismethod(f) and len(inspect.getargspec(f)[0]) == 1:
|
||||||
ret = _any(f())
|
ret = _any(f())
|
||||||
else:
|
else:
|
||||||
ret = str(thing) # TRC TODO: Change this back!
|
ret = unicode(thing) # TRC TODO: Change this back!
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user