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
| Name | Type | Description |
|---|---|---|
| sender | object | The model class that sent the signal. |
| user | object | The user instance representing the person currently logging in. |
| **kwargs | dict | Additional keyword arguments passed by the signal dispatcher. |
Returns
| Type | Description |
|---|---|
null | Nothing is returned; the user object is updated in the database as a side effect. |