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

Fix RestrictedQuerySet evaluation in tests

This commit is contained in:
Jeremy Stretch
2020-06-29 11:27:23 -04:00
parent 5732466e56
commit 10e6b6ca66
2 changed files with 3 additions and 3 deletions

View File

@@ -416,7 +416,7 @@ class VLANTest(APIViewTestCases.APIViewTestCase):
"""
Attempt and fail to delete a VLAN with a Prefix assigned to it.
"""
vlan = VLAN.objects.first()
vlan = VLAN.objects.unrestricted().first()
Prefix.objects.create(prefix=IPNetwork('192.0.2.0/24'), vlan=vlan)
self.add_permissions('ipam.delete_vlan')