mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-17 04:32:51 -06:00
18706 review feedback
This commit is contained in:
parent
90cf97ee29
commit
cbadbd83ab
@ -291,7 +291,7 @@ class VLAN(PrimaryModel):
|
|||||||
if self.site not in self.group.scope.sites.all():
|
if self.site not in self.group.scope.sites.all():
|
||||||
raise ValidationError(
|
raise ValidationError(
|
||||||
_(
|
_(
|
||||||
"VLAN is assigned to group {group} (scope: {scope}); cannot also assign to site {site}."
|
"The assigned site {site} is not a member of the assigned group {group} (scope: {scope})."
|
||||||
).format(group=self.group, scope=self.group.scope, site=self.site)
|
).format(group=self.group, scope=self.group.scope, site=self.site)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -691,7 +691,7 @@ class TestVLAN(TestCase):
|
|||||||
site=sites[0],
|
site=sites[0],
|
||||||
)
|
)
|
||||||
|
|
||||||
# VLAN Group 0 and 1 should be valid
|
# VLAN Group 1 and 2 should be valid
|
||||||
vlan.full_clean()
|
vlan.full_clean()
|
||||||
vlan.group = vlangroups[1]
|
vlan.group = vlangroups[1]
|
||||||
vlan.full_clean()
|
vlan.full_clean()
|
||||||
|
Loading…
Reference in New Issue
Block a user