From faaae06f8f38f6fa7f7c460de9ddda7347b73098 Mon Sep 17 00:00:00 2001 From: Henrique da Silva Santos Date: Tue, 25 Jun 2024 13:04:22 -0300 Subject: [PATCH] Update models.py Fix wrong indentation --- django_login_history2/models.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/django_login_history2/models.py b/django_login_history2/models.py index 5bb744f..9f0667f 100644 --- a/django_login_history2/models.py +++ b/django_login_history2/models.py @@ -66,10 +66,10 @@ def post_login(sender, user, request, **kwargs): except FieldDoesNotExist: pass - _ = Login.objects.create( - user=user, - ip=client_ip, - user_agent=request.META.get('HTTP_USER_AGENT', ''), - ip_info=result, - **mapped_fields - ) \ No newline at end of file + _ = Login.objects.create( + user=user, + ip=client_ip, + user_agent=request.META.get('HTTP_USER_AGENT', ''), + ip_info=result, + **mapped_fields + )