add category and layer to editorforms
This commit is contained in:
parent
4441ca1b74
commit
b974869a08
1 changed files with 2 additions and 1 deletions
|
@ -87,7 +87,8 @@ class MapitemFormMixin(ModelForm):
|
|||
def create_editor_form(mapitemtype):
|
||||
possible_fields = ['name', 'public', 'altitude', 'level', 'intermediate', 'levels', 'geometry', 'direction',
|
||||
'elevator', 'button', 'crop_to_level', 'width', 'groups', 'override_altitude', 'color',
|
||||
'location_type', 'can_search', 'can_describe', 'routing_inclusion', 'compiled_room', 'bssids']
|
||||
'location_type', 'can_search', 'can_describe', 'routing_inclusion', 'compiled_room', 'bssids',
|
||||
'categories', 'layer']
|
||||
existing_fields = [field.name for field in mapitemtype._meta.get_fields() if field.name in possible_fields]
|
||||
|
||||
class EditorForm(MapitemFormMixin, ModelForm):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue