User session tracking #93587
@ -666,7 +666,6 @@ class UserSession(models.Model):
|
|||||||
)
|
)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@transaction.atomic
|
|
||||||
def update_or_create_from_request(cls, request, user=None):
|
def update_or_create_from_request(cls, request, user=None):
|
||||||
if not user:
|
if not user:
|
||||||
user = request.user
|
user = request.user
|
||||||
|
Loading…
Reference in New Issue
Block a user