Skip to content

Commit

Permalink
Merge pull request #20 from riquedev/riquedev-patch-1
Browse files Browse the repository at this point in the history
Update models.py
  • Loading branch information
riquedev authored Jun 25, 2024
2 parents b393d92 + faaae06 commit 1cceaac
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions django_login_history2/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
_ = Login.objects.create(
user=user,
ip=client_ip,
user_agent=request.META.get('HTTP_USER_AGENT', ''),
ip_info=result,
**mapped_fields
)

0 comments on commit 1cceaac

Please sign in to comment.