Plugin Version
0.2.0
NetBox Version
4.4.0
Python Version
3.12
Steps to Reproduce
- Create a custom object type "cot1"
- Add a text field f1
- Create a custom object of this type
- Create a custom object type "cot2"
- Add an Object field and for Related object type reference cot1
- Delete cot1
- restart NetBox
Expected Behavior
cot1 shouldn't be allowed to be deleted if there are other COTs referencing it.
Observed Behavior
NetBox won't restart with an error "netbox_custom_objects.models.CustomObjectType.DoesNotExist: CustomObjectType matching query does not exist."