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

Update signal handlers (WIP)

This commit is contained in:
jeremystretch
2022-05-02 08:26:02 -04:00
parent 5d37f9f975
commit c3742f63fd
2 changed files with 23 additions and 28 deletions

View File

@@ -139,18 +139,6 @@ class LinkTermination(models.Model):
help_text="Treat as if a cable is connected"
)
# Generic relations to Cable. These ensure that an attached Cable is deleted if the terminated object is deleted.
_cabled_as_a = GenericRelation(
to='dcim.Cable',
content_type_field='termination_a_type',
object_id_field='termination_a_id'
)
_cabled_as_b = GenericRelation(
to='dcim.Cable',
content_type_field='termination_b_type',
object_id_field='termination_b_id'
)
class Meta:
abstract = True