1
0
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:
Jeremy Stretch
2016-07-18 11:35:40 -04:00
parent 32d8cf451a
commit d201dad535

View File

@ -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):