mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #322: Corrected 'vlan_group' to 'group'
This commit is contained in:
@ -428,7 +428,7 @@ class VLAN(CreatedUpdatedModel):
|
||||
def clean(self):
|
||||
|
||||
# Validate VLAN group
|
||||
if self.vlan_group and self.vlan_group.site != self.site:
|
||||
if self.group and self.group.site != self.site:
|
||||
raise ValidationError("VLAN group must belong to the assigned site ({}).".format(self.site))
|
||||
|
||||
def to_csv(self):
|
||||
|
Reference in New Issue
Block a user