diff options
| author | tom christie tom@tomchristie.com | 2011-03-03 08:56:26 +0000 |
|---|---|---|
| committer | tom christie tom@tomchristie.com | 2011-03-03 08:56:26 +0000 |
| commit | aad7eacce6ed894c84b0b49567eaccbbe6bf0813 (patch) | |
| tree | d8e074443f7715c347c46786c971d8fbc7d08e68 /djangorestframework | |
| parent | 09a8b9627a8e4686801d08c6d411228e189cc051 (diff) | |
| download | django-rest-framework-aad7eacce6ed894c84b0b49567eaccbbe6bf0813.tar.bz2 | |
Ack. Use unicode not str in modelresource
Diffstat (limited to 'djangorestframework')
| -rw-r--r-- | djangorestframework/modelresource.py | 2 |
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 |
