add elevators
This commit is contained in:
parent
5dbeb9c356
commit
0496575d25
10 changed files with 143 additions and 8 deletions
|
@ -80,7 +80,7 @@ class MapitemFormMixin(ModelForm):
|
|||
|
||||
|
||||
def create_editor_form(mapitemtype):
|
||||
possible_fields = ['name', 'package', 'level', 'geometry', 'height']
|
||||
possible_fields = ['name', 'package', 'level', 'geometry', 'height', 'elevator', 'button']
|
||||
existing_fields = [field for field in possible_fields if hasattr(mapitemtype, field)]
|
||||
|
||||
class EditorForm(MapitemFormMixin, ModelForm):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue