From d18ef98b000fd9c9dd1b2688eb93dacfe1c9ece5 Mon Sep 17 00:00:00 2001 From: Arthur Date: Wed, 4 Feb 2026 11:57:23 -0800 Subject: [PATCH] fix dropdown sorting --- netbox/dcim/forms/model_forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netbox/dcim/forms/model_forms.py b/netbox/dcim/forms/model_forms.py index 13d5f512b..9bdb64919 100644 --- a/netbox/dcim/forms/model_forms.py +++ b/netbox/dcim/forms/model_forms.py @@ -745,7 +745,8 @@ class ModuleForm(ModuleCommonForm, PrimaryModelForm): label=_('Module bay'), queryset=ModuleBay.objects.all(), query_params={ - 'device_id': '$device' + 'device_id': '$device', + 'ordering': 'name', }, context={ 'disabled': 'installed_module',