Deleting DeviceType with Component raises DeviceType.DoesNotExist exception #3900
Labels
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
Environment
Steps to Reproduce
Expected Behavior
The Device Type to be deleted and being redirected to the Device Type list.
Observed Behavior
The Device Type is deleted, but an exception is raised:
The URL with the exception is https://netbox-server/dcim/device-types/3/delete/
It seems like deleting the device type components are trying to redirect to the Device Type after deletion, but the Device Type has already been deleted. So some way of differentiating the
return_url
when deleting the Device Type (which includes deleting all components) contra when deleting only components from the Device Type is needed.The text was updated successfully, but these errors were encountered: