summaryrefslogtreecommitdiff
path: root/django/contrib/postgres/forms/jsonb.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/contrib/postgres/forms/jsonb.py')
-rw-r--r--django/contrib/postgres/forms/jsonb.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/django/contrib/postgres/forms/jsonb.py b/django/contrib/postgres/forms/jsonb.py
index 719de3ae66..28429c7172 100644
--- a/django/contrib/postgres/forms/jsonb.py
+++ b/django/contrib/postgres/forms/jsonb.py
@@ -1,17 +1,16 @@
import json
from django import forms
-from django.utils import six
from django.utils.translation import ugettext_lazy as _
__all__ = ['JSONField']
-class InvalidJSONInput(six.text_type):
+class InvalidJSONInput(str):
pass
-class JSONString(six.text_type):
+class JSONString(str):
pass
@@ -36,7 +35,7 @@ class JSONField(forms.CharField):
code='invalid',
params={'value': value},
)
- if isinstance(converted, six.text_type):
+ if isinstance(converted, str):
return JSONString(converted)
else:
return converted