From aad7eacce6ed894c84b0b49567eaccbbe6bf0813 Mon Sep 17 00:00:00 2001 From: "tom christie tom@tomchristie.com" Date: Thu, 3 Mar 2011 08:56:26 +0000 Subject: [PATCH] Ack. Use unicode not str in modelresource --- djangorestframework/modelresource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangorestframework/modelresource.py b/djangorestframework/modelresource.py index 0b06dacb7..55a15d6af 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