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 + )