allow altitudemarker altitude to be edited

This commit is contained in:
Laura Klünder 2017-10-08 11:35:57 +02:00
parent a87b6d79ac
commit 3e8b3d534a

View file

@ -163,7 +163,7 @@ def create_editor_form(editor_model):
possible_fields = ['slug', 'name', 'ordering', 'category', 'width', 'groups', 'color', 'priority', 'base_altitude',
'waytype', 'access_restriction', 'height', 'default_height', 'can_search', 'can_describe',
'outside', 'geometry', 'single', 'allow_levels', 'allow_spaces', 'allow_areas', 'allow_pois',
'left', 'top', 'right', 'bottom']
'altitude', 'left', 'top', 'right', 'bottom']
field_names = [field.name for field in editor_model._meta.get_fields() if not field.one_to_many]
existing_fields = [name for name in possible_fields if name in field_names]