add LocationGroup.compiled_room and show nice subtitle

This commit is contained in:
Laura Klünder 2016-12-23 22:42:42 +01:00
parent fb26c90085
commit 45f31c5a96
5 changed files with 84 additions and 5 deletions

View file

@ -109,7 +109,7 @@ class MapitemFormMixin(ModelForm):
def create_editor_form(mapitemtype):
possible_fields = ['name', 'package', 'altitude', 'level', 'intermediate', 'levels', 'geometry', 'direction',
'elevator', 'button', 'crop_to_level', 'width', 'groups', 'override_altitude',
'location_type', 'can_search', 'can_describe', 'routing_inclusion']
'location_type', 'can_search', 'can_describe', 'routing_inclusion', 'compiled_room']
existing_fields = [field.name for field in mapitemtype._meta.get_fields() if field.name in possible_fields]
class EditorForm(MapitemFormMixin, ModelForm):