We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6a8577 commit 59dce87Copy full SHA for 59dce87
netbox/dcim/forms/mixins.py
@@ -66,6 +66,10 @@ def _set_scoped_values(self):
66
if self.instance and scope_type_id != self.instance.scope_type_id:
67
self.initial['scope'] = None
68
69
+ else:
70
+ # Clear the initial scope value if scope_type is not set
71
+ self.initial['scope'] = None
72
+
73
74
class ScopedBulkEditForm(forms.Form):
75
scope_type = ContentTypeChoiceField(
0 commit comments