mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 19:43:59 +03:00
Use smart_text() instead of nonexistant smart_unicode()
This commit is contained in:
parent
85faebbb75
commit
3691cd2ffd
|
@ -117,10 +117,10 @@ class Field(object):
|
||||||
self.source = source
|
self.source = source
|
||||||
|
|
||||||
if label is not None:
|
if label is not None:
|
||||||
self.label = smart_unicode(label)
|
self.label = smart_text(label)
|
||||||
|
|
||||||
if help_text is not None:
|
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):
|
def initialize(self, parent, field_name):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user