Skip to main content

update_last_login

A signal receiver which updates the last_login date for the user logging in.

def update_last_login(
sender: object,
user: object,
**kwargs: dict
) - > null

A signal receiver which updates the last_login date for the user logging in.

Parameters

NameTypeDescription
senderobjectThe model class that sent the signal.
userobjectThe user instance representing the person currently logging in.
**kwargsdictAdditional keyword arguments passed by the signal dispatcher.

Returns

TypeDescription
nullNothing is returned; the user object is updated in the database as a side effect.