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

PEP8 cleanup

This commit is contained in:
Jeremy Stretch
2018-10-26 13:27:54 -04:00
parent 94946c5854
commit 0c7510c1a8
4 changed files with 5 additions and 6 deletions

View File

@@ -79,6 +79,6 @@ class CableQuerySet(QuerySet):
"""
content_type = ContentType.objects.get_for_model(termination)
return self.filter(
Q(termination_a_type=content_type, termination_a_id=termination.pk) |
Q(termination_b_type=content_type, termination_b_id=termination.pk)
).first()
Q(termination_a_type=content_type, termination_a_id=termination.pk) |
Q(termination_b_type=content_type, termination_b_id=termination.pk)
).first()