When the given task instance is deleted, delete also the corresponding item
    relations.

def delete_parent(sender, instance, **kwargs):
    """
    When the given task instance is deleted, delete also the corresponding item
    relations.
    """
    ItemRelation.objects.filter(child_id=instance.item_id).delete()