code: def delete_entry(sender, instance, **kwargs):
      
      from ..models import Entry
  
      Entry.objects.get_for_model(instance)[0].delete()
docs: Deletes Entry instance corresponding to specified instance.
  
      :param sender: the sending class.
      :param instance: the instance being deleted.