aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/modelresource.py
diff options
context:
space:
mode:
authortom christie tom@tomchristie.com2011-03-03 08:56:26 +0000
committertom christie tom@tomchristie.com2011-03-03 08:56:26 +0000
commitaad7eacce6ed894c84b0b49567eaccbbe6bf0813 (patch)
treed8e074443f7715c347c46786c971d8fbc7d08e68 /djangorestframework/modelresource.py
parent09a8b9627a8e4686801d08c6d411228e189cc051 (diff)
downloaddjango-rest-framework-aad7eacce6ed894c84b0b49567eaccbbe6bf0813.tar.bz2
Ack. Use unicode not str in modelresource
Diffstat (limited to 'djangorestframework/modelresource.py')
-rw-r--r--djangorestframework/modelresource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/modelresource.py b/djangorestframework/modelresource.py
index 0b06dacb..55a15d6a 100644
--- a/djangorestframework/modelresource.py
+++ b/djangorestframework/modelresource.py
@@ -124,7 +124,7 @@ class ModelResource(Resource, ModelFormValidatorMixin):
if inspect.ismethod(f) and len(inspect.getargspec(f)[0]) == 1:
ret = _any(f())
else:
- ret = str(thing) # TRC TODO: Change this back!
+ ret = unicode(thing) # TRC TODO: Change this back!
return ret