Commits

Matthew Schinckel committed ad5a846

Python3 fix.

Comments (0)

Files changed (1)

jsonfield/forms.py

 from django import forms
 from django.utils import simplejson as json
+from django.utils import six
 
 from .widgets import JSONWidget
 
         if not value:
             return value
 
-        if isinstance(value, basestring):
+        if isinstance(value, six.string_types):
             try:
                 return json.loads(value)
             except Exception as exc: