Is there an option for to make sure that a model instance does not have any related objects? i.e, if the Person object has any related objects, I want this line
person.delete()
to raise an error.
And I don't want to modify on_delete=models.CASCADE for every foreign key. I need this protection only here, for any other case in my application (like django admin site) I do prefer the cascading behavior.