1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Add vlan_groups to Region, SiteGroup, Site, Location, Rack, ClusterGroup, Cluster

This commit is contained in:
jeremystretch
2021-08-03 11:49:22 -04:00
parent 8ad958708f
commit 735286d3b0
6 changed files with 59 additions and 9 deletions

View File

@@ -175,6 +175,12 @@ class Rack(PrimaryModel):
comments = models.TextField(
blank=True
)
vlan_groups = GenericRelation(
to='ipam.VLANGroup',
content_type_field='scope_type',
object_id_field='scope_id',
related_query_name='rack'
)
images = GenericRelation(
to='extras.ImageAttachment'
)