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

Fixes #2663: Prevent duplicate interfaces from appearing under VLAN members view

This commit is contained in:
Jeremy Stretch
2018-12-12 13:18:42 -05:00
parent 785cdcefd6
commit 2418fed65b
3 changed files with 4 additions and 3 deletions

View File

@@ -812,7 +812,7 @@ class VLAN(ChangeLoggedModel, CustomFieldModel):
return Interface.objects.filter(
Q(untagged_vlan_id=self.pk) |
Q(tagged_vlans=self.pk)
)
).distinct()
class Service(ChangeLoggedModel, CustomFieldModel):