(self, sender, instance, **kwargs)
Handle removing of instance object from related models instance.
        We need to do this before the real delete otherwise the relation
        doesn't exists anymore and we can't get the related models instance.
Handle removing of instance object from related models instance.
        We need to do this before the real delete otherwise the relation
        doesn't exists anymore and we can't get the related models instance.
Handle removing of instance object from related models instance . We need to do this before the real delete otherwise the relation doesn t exists anymore and we can t get the related models instance .
def handle_pre_delete(self, sender, instance, **kwargs):
        """Handle removing of instance object from related models instance.
        We need to do this before the real delete otherwise the relation
        doesn't exists anymore and we can't get the related models instance.
        """
        registry.delete_related(instance)
def handle_pre_delete ( self , sender , instance , * * kwargs ) : registry . delete_related ( instance )