1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #7273: Disable automatic sorting of select options fetched via API

This commit is contained in:
jeremystretch
2021-09-16 11:08:05 -04:00
parent 574b57eadb
commit 6f24a938d9
4 changed files with 4 additions and 28 deletions

View File

@@ -2202,9 +2202,7 @@ class DeviceForm(BootstrapMixin, TenancyForm, CustomFieldModelForm):
api_url='/api/dcim/racks/{{rack}}/elevation/',
attrs={
'disabled-indicator': 'device',
'data-query-param-face': "[\"$face\"]",
# The UI will not sort this element's options.
'pre-sorted': ''
'data-query-param-face': "[\"$face\"]"
}
)
)