Browse Source

Fixes #322: Corrected 'vlan_group' to 'group'

Jeremy Stretch 8 years ago
parent
commit
d201dad535
1 changed files with 1 additions and 1 deletions
  1. 1 1
      netbox/ipam/models.py

+ 1 - 1
netbox/ipam/models.py

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