mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Replace is_connected_endpoint
with simple isinstance
check
It was only used in a single location anyway…
This commit is contained in:
@@ -86,9 +86,6 @@ class CableTermination(models.Model):
|
||||
object_id_field='termination_b_id'
|
||||
)
|
||||
|
||||
# Whether this class can be a connected endpoint
|
||||
is_connected_endpoint = True
|
||||
|
||||
class Meta:
|
||||
abstract = True
|
||||
|
||||
@@ -897,9 +894,6 @@ class FrontPort(CableTermination, ComponentModel):
|
||||
|
||||
csv_headers = ['device', 'name', 'type', 'rear_port', 'rear_port_position', 'description']
|
||||
|
||||
# Whether this class can be a connected endpoint
|
||||
is_connected_endpoint = False
|
||||
|
||||
class Meta:
|
||||
ordering = ('device', '_name')
|
||||
unique_together = (
|
||||
@@ -967,9 +961,6 @@ class RearPort(CableTermination, ComponentModel):
|
||||
|
||||
csv_headers = ['device', 'name', 'type', 'positions', 'description']
|
||||
|
||||
# Whether this class can be a connected endpoint
|
||||
is_connected_endpoint = False
|
||||
|
||||
class Meta:
|
||||
ordering = ('device', '_name')
|
||||
unique_together = ('device', 'name')
|
||||
|
Reference in New Issue
Block a user