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 d203490 commit e27d40bCopy full SHA for e27d40b
openwisp_controller/subnet_division/base/models.py
@@ -69,6 +69,13 @@ def rule_class(self):
69
return import_string(self.type)
70
71
def clean(self):
72
+ # Auto-fill organization from master subnet
73
+ if (
74
+ self.master_subnet_id
75
+ and self.master_subnet.organization is not None
76
+ and not self.organization
77
+ ):
78
+ self.organization = self.master_subnet.organization
79
super().clean()
80
self._validate_label()
81
self._validate_master_subnet_validity()
0 commit comments