Skip to content

Commit d18ef98

Browse files
committed
fix dropdown sorting
1 parent 8aab80b commit d18ef98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

netbox/dcim/forms/model_forms.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,8 @@ class ModuleForm(ModuleCommonForm, PrimaryModelForm):
745745
label=_('Module bay'),
746746
queryset=ModuleBay.objects.all(),
747747
query_params={
748-
'device_id': '$device'
748+
'device_id': '$device',
749+
'ordering': 'name',
749750
},
750751
context={
751752
'disabled': 'installed_module',

0 commit comments

Comments
 (0)