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

Fixes #10513: Disable the reassignment of a module to a new device

This commit is contained in:
jeremystretch
2022-10-03 10:39:03 -04:00
parent 62820ea2b8
commit 9ef24d3f43
4 changed files with 13 additions and 2 deletions

View File

@ -679,6 +679,7 @@ class ModuleForm(NetBoxModelForm):
super().__init__(*args, **kwargs)
if self.instance.pk:
self.fields['device'].disabled = True
self.fields['replicate_components'].initial = False
self.fields['replicate_components'].disabled = True
self.fields['adopt_components'].initial = False