move priority form field up
This commit is contained in:
parent
9874fb8843
commit
538d55be8a
1 changed files with 2 additions and 2 deletions
|
@ -142,8 +142,8 @@ class EditorFormBase(ModelForm):
|
|||
|
||||
def create_editor_form(editor_model):
|
||||
possible_fields = ['slug', 'name', 'altitude', 'category', 'width', 'groups', 'color', 'public',
|
||||
'can_search', 'can_describe', 'outside', 'stuffed', 'geometry',
|
||||
'priority', 'single', 'allow_levels', 'allow_spaces', 'allow_areas', 'allow_pois',
|
||||
'priority', 'can_search', 'can_describe', 'outside', 'stuffed', 'geometry',
|
||||
'single', 'allow_levels', 'allow_spaces', 'allow_areas', 'allow_pois',
|
||||
'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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue