Parcourir la source

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

Jeremy Stretch il y a 8 ans
Parent
commit
d201dad535
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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):