change mapitems API to geometry API.

This commit is contained in:
Laura Klünder 2016-11-27 14:03:39 +01:00
parent a3d0f6dac3
commit 769343f78a
9 changed files with 88 additions and 158 deletions

View file

@ -23,7 +23,7 @@ class FeatureFormMixin(ModelForm):
if not creating and not settings.DIRECT_EDITING:
self.fields['name'].disabled = True
if creating and self._meta.model in (Door, ):
if creating and self._meta.model in (Door, Obstacle, ):
self.fields['name'].initial = uuid.uuid4()
# restrict package choices and field_name