diff --git a/django-olwidget/olwidget/forms.py b/django-olwidget/olwidget/forms.py index 4ec1778..2b1bdc6 100644 --- a/django-olwidget/olwidget/forms.py +++ b/django-olwidget/olwidget/forms.py @@ -1,4 +1,5 @@ from django import forms +from django.forms.forms import get_declared_fields from django.contrib.gis.forms.fields import GeometryField from olwidget.widgets import Map, BaseVectorLayer, EditableLayer @@ -54,7 +55,7 @@ def __new__(mcs, name, bases, attrs): except NameError: # We are defining MapModelForm itself. parents = None - declared_fields = forms.models.get_declared_fields(bases, attrs, False) + declared_fields = get_declared_fields(bases, attrs, False) new_class = super(MapModelFormMetaclass, mcs).__new__(mcs, name, bases, attrs) if not parents: diff --git a/setup.py b/setup.py index 6d8a207..eb6df80 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ root = os.path.abspath(os.path.dirname(__file__)) os.chdir(root) -VERSION = '0.61.2' +VERSION = '0.61.3' setup(name='django-olwidget', version=VERSION,