mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 17:08:41 -06:00
PEP8 cleanup
This commit is contained in:
parent
94946c5854
commit
0c7510c1a8
@ -2427,7 +2427,7 @@ class Cable(ChangeLoggedModel):
|
|||||||
rear_port=termination,
|
rear_port=termination,
|
||||||
rear_port_position=position,
|
rear_port_position=position,
|
||||||
)
|
)
|
||||||
position=1
|
position = 1
|
||||||
|
|
||||||
# Termination is not a pass-through port, so we've reached the end of the path
|
# Termination is not a pass-through port, so we've reached the end of the path
|
||||||
else:
|
else:
|
||||||
|
@ -79,6 +79,6 @@ class CableQuerySet(QuerySet):
|
|||||||
"""
|
"""
|
||||||
content_type = ContentType.objects.get_for_model(termination)
|
content_type = ContentType.objects.get_for_model(termination)
|
||||||
return self.filter(
|
return self.filter(
|
||||||
Q(termination_a_type=content_type, termination_a_id=termination.pk) |
|
Q(termination_a_type=content_type, termination_a_id=termination.pk) |
|
||||||
Q(termination_b_type=content_type, termination_b_id=termination.pk)
|
Q(termination_b_type=content_type, termination_b_id=termination.pk)
|
||||||
).first()
|
).first()
|
||||||
|
@ -2063,7 +2063,6 @@ class CableDeleteView(PermissionRequiredMixin, ObjectDeleteView):
|
|||||||
default_return_url = 'dcim:cable_list'
|
default_return_url = 'dcim:cable_list'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Connections
|
# Connections
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user