def log_logout(sender, request, user, **kwargs): """ Log the user logging out """ stracks.user(user).log("? has logged out", action=stracks.logout())
def log_create(sender, instance, created, **kwargs): """ Log the creation of a new user """ if created: stracks.user(instance).log("? has been created")
def log_signup(sender, signal, user, **kwargs): """ Log the creation of a new user """ stracks.user(user).log("? has completed (userena) signup")