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

Merge pull request #7285 from netbox-community/7273-apiselect-sorting

Fixes #7273: Disable automatic sorting of select options fetched via API
This commit is contained in:
Jeremy Stretch
2021-09-17 12:09:56 -04:00
committed by GitHub
5 changed files with 5 additions and 28 deletions

View File

@@ -2238,9 +2238,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\"]"
}
)
)