@receiver(user_logged_in)
def grant(sender, request, **kwargs):
    grant_sudo_privileges(request)
Automatically grant sudo privileges when logging in.
dataset/ETHPy150Open mattrobenolt/django-sudo/sudo/signals.py/grant