django-json-field icon indicating copy to clipboard operation
django-json-field copied to clipboard

Django 1.9 compatibility

Open marcinn opened this issue 9 years ago • 1 comments

Package will not work in Django 1.9 due to deprecated import in forms:

`django_json_field-0.5.7-py2.7.egg/json_field/forms.py:5: RemovedInDjango19Warning: The django.forms.util module has been renamed. Use django.forms.utils instead.``

There is no necessary to import django.forms.util(s), because you're using it to raise ValidationError. Just import forms and change util.ValidationError to forms.ValidationError, or import ValidationError from django.core.exceptions.

marcinn avatar Sep 01 '15 13:09 marcinn

there is already a PR i've submitted for this. just waiting for it to be accepted ='( https://github.com/derek-schaefer/django-json-field/pull/41

w- avatar Sep 09 '15 00:09 w-