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:
@@ -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
|
||||
|
Reference in New Issue
Block a user