mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 20:40:14 +03:00
Fix string identification in python2.7
This commit is contained in:
parent
bf53f741d6
commit
fe0c4f9878
|
@ -944,7 +944,7 @@ class FloatField(Field):
|
||||||
|
|
||||||
def to_internal_value(self, data):
|
def to_internal_value(self, data):
|
||||||
|
|
||||||
if isinstance(data, six.text_type):
|
if isinstance(data, six.string_types):
|
||||||
|
|
||||||
data = smart_text(data).strip()
|
data = smart_text(data).strip()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user