diff --git a/json_field/forms.py b/json_field/forms.py index 830217b..1c41fba 100644 --- a/json_field/forms.py +++ b/json_field/forms.py @@ -2,7 +2,14 @@ import json except ImportError: # python < 2.6 from django.utils import simplejson as json -from django.forms import fields, util + +from django.forms import fields + +import warnings +try: + from django.forms import util +except (Warning, ImportError): + from django.forms import utils as util import datetime from decimal import Decimal