kolibri/core/auth/signals.py
def cascade_delete_user(sender, instance=None, *args, **kwargs):
    """
    For a given user,  we delete all notifications
    objects whose user is the instance's user.
    """
    LearnerProgressNotification.objects.filter(user_id=instance.id).delete()

    For a given user,  we delete all notifications
    objects whose user is the instance's user.
    
For a given user,  we delete all notifications
objects whose user is the instance's user.
For a given user we delete all notifications objects whose user is the instance ' s user .
def cascade_delete_user(sender, instance=None, *args, **kwargs):
    LearnerProgressNotification.objects.filter(user_id=instance.id).delete()
def cascade_delete_user ( sender , instance = None , * args , ** kwargs ) : LearnerProgressNotification . objects . filter ( user_id = instance . id ) . delete ( )
For a given user,  we delete all notifications
objects whose user is the instance's user.
For a given user we delete all notifications objects whose user is the instance ' s user .
"""
    For a given user,  we delete all notifications
    objects whose user is the instance's user.
    """
sender
instance