Replace is_path_endpoint with simple isinstance check

It was only used in a single location anyway…
This commit is contained in:
Sander Steffann
2020-06-26 17:25:07 +02:00
parent 715ddc6b02
commit 3fdc8e7d3d
3 changed files with 2 additions and 13 deletions

View File

@@ -86,9 +86,6 @@ class CableTermination(models.Model):
object_id_field='termination_b_id'
)
# Whether this class is always an endpoint for cable traces
is_path_endpoint = True
# Whether this class can be a connected endpoint
is_connected_endpoint = True
@@ -900,9 +897,6 @@ class FrontPort(CableTermination, ComponentModel):
csv_headers = ['device', 'name', 'type', 'rear_port', 'rear_port_position', 'description']
# Whether this class is always an endpoint for cable traces
is_path_endpoint = False
# Whether this class can be a connected endpoint
is_connected_endpoint = False
@@ -973,9 +967,6 @@ class RearPort(CableTermination, ComponentModel):
csv_headers = ['device', 'name', 'type', 'positions', 'description']
# Whether this class is always an endpoint for cable traces
is_path_endpoint = False
# Whether this class can be a connected endpoint
is_connected_endpoint = False