diff options
| author | Tom Christie | 2015-01-21 13:03:37 +0000 |
|---|---|---|
| committer | Tom Christie | 2015-01-21 13:03:37 +0000 |
| commit | da6ef3d0b0f3a8e688524bbd446d4350a74fd05a (patch) | |
| tree | dfbd8a9207506344f8154104954a59f945fa489c /rest_framework/compat.py | |
| parent | fdeef89ba79e617ea22dae68a0b42b3f60d67a4d (diff) | |
| download | django-rest-framework-da6ef3d0b0f3a8e688524bbd446d4350a74fd05a.tar.bz2 | |
Allow missing fields option for inherited serializers. Closes #2388.
Diffstat (limited to 'rest_framework/compat.py')
| -rw-r--r-- | rest_framework/compat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/compat.py b/rest_framework/compat.py index 17814136..766afaec 100644 --- a/rest_framework/compat.py +++ b/rest_framework/compat.py @@ -20,7 +20,7 @@ def unicode_repr(instance): # Get the repr of an instance, but ensure it is a unicode string # on both python 3 (already the case) and 2 (not the case). if six.PY2: - repr(instance).decode('utf-8') + return repr(instance).decode('utf-8') return repr(instance) |
