From 3691cd2ffd26ee639b88aa9f516f211e0558d454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20T=C3=B6rnqvist?= Date: Sat, 18 May 2013 13:26:59 +0300 Subject: [PATCH] Use smart_text() instead of nonexistant smart_unicode() --- rest_framework/fields.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rest_framework/fields.py b/rest_framework/fields.py index 3c4e975ae..e4da14566 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -117,10 +117,10 @@ class Field(object): self.source = source if label is not None: - self.label = smart_unicode(label) + self.label = smart_text(label) if help_text is not None: - self.help_text = smart_unicode(help_text) + self.help_text = smart_text(help_text) def initialize(self, parent, field_name): """