Example #1
0
def logout_user(sender, **kwargs):
    """
    Legacy code
    Wraps logout signal to send deprecated "post_superuser_logout" signal
    """
    user = kwargs['user']
    if hasattr(user, 'id'):
        post_superuser_logout.send(sender=None, user_id=user.pk)
Example #2
0
def logout_user(sender, **kwargs):
    """
    Legacy code
    Wraps logout signal to send deprecated "post_superuser_logout" signal
    """
    user = kwargs['user']
    if hasattr(user, 'id'):
        post_superuser_logout.send(sender=None, user_id=user.pk)
Example #3
0
def logout_user(sender, **kwargs):
    ''' wraps logout signal '''
    user = kwargs['user']
    if hasattr(user, 'id'):
        post_superuser_logout.send(sender=None, user_id=user.pk)
Example #4
0
def logout_user(sender, **kwargs):
    ''' wraps logout signal '''
    user = kwargs['user']
    if hasattr(user, 'id'):
        post_superuser_logout.send(sender=None, user_id=user.pk)
Example #5
0
def logout_user(sender, **kwargs):
    """ wraps logout signal """
    user = kwargs["user"]
    if hasattr(user, "id"):
        post_superuser_logout.send(sender=None, user_id=user.pk)