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

Fixes #9884: Prevent querying assigned VRF on prefix object init

This commit is contained in:
jeremystretch
2022-08-01 09:47:18 -04:00
parent 9fe5f09742
commit 8a075bcff9
3 changed files with 4 additions and 3 deletions

View File

@@ -373,7 +373,7 @@ class Prefix(GetAvailablePrefixesMixin, NetBoxModel):
# Cache the original prefix and VRF so we can check if they have changed on post_save
self._prefix = self.prefix
self._vrf = self.vrf
self._vrf_id = self.vrf_id
def __str__(self):
return str(self.prefix)