netbox icon indicating copy to clipboard operation
netbox copied to clipboard

#15548 - False Positive Related Object in Custom Fields

Open Julio-Oliveira-Encora opened this issue 10 months ago • 0 comments

Fixes: #15548

I created the class CustomObjectDeleteView, which was inherited from ObjectDeleteView, and overwritten the "get" method and its dependent_objects variable. This way, the modal from delete_form.html will not display messages about dependent objects.

Also, I changed the inherited class for CustomFieldDeleteView to use generic.CustomObjectDeleteView.

Julio-Oliveira-Encora avatar Apr 11 '24 18:04 Julio-Oliveira-Encora