Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
max-arnold committed Jun 16, 2016
1 parent 82e8be0 commit 1726b27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion django-olwidget/olwidget/forms.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1726b27

Please sign in to comment.