add category and layer to editorforms
@@ -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):
