diff --git a/netbox/dcim/forms/model_forms.py b/netbox/dcim/forms/model_forms.py index 32ea2d263..c0dee533d 100644 --- a/netbox/dcim/forms/model_forms.py +++ b/netbox/dcim/forms/model_forms.py @@ -755,7 +755,10 @@ class ModuleForm(ModuleCommonForm, NetBoxModelForm): queryset=ModuleBay.objects.all(), query_params={ 'device_id': '$device' - } + }, + context={ + 'disabled': 'installed_module', + }, ) module_type = DynamicModelChoiceField( label=_('Module type'),