Skip to content

Commit

Permalink
Update to fix Issue yourcelf#124
Browse files Browse the repository at this point in the history
  • Loading branch information
Bret Walker committed Aug 27, 2014
1 parent 145efdf commit f1fc2de
Showing 1 changed file with 2 additions and 1 deletion.
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

1 comment on commit f1fc2de

@enricofer
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep! It works! Thanks
Please Pull Request!

Please sign in to comment.