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

Tweak querysets to work with restriction

This commit is contained in:
Jeremy Stretch
2020-06-29 10:57:09 -04:00
parent 6ab4640cdc
commit ce55d0c791
2 changed files with 6 additions and 3 deletions

View File

@@ -239,7 +239,7 @@ class Circuit(ChangeLoggedModel, CustomFieldModel):
return self.STATUS_CLASS_MAP.get(self.status)
def _get_termination(self, side):
for ct in self.terminations.all():
for ct in self.terminations.unrestricted():
if ct.term_side == side:
return ct
return None