Upgrade django-ipware (#24827)

This commit is contained in:
M. Zulqarnain
2021-02-23 18:14:17 +05:00
committed by GitHub
parent 40ece9ea9b
commit 42fc6aef03
15 changed files with 29 additions and 49 deletions

View File

@@ -1,15 +1,13 @@
"""
Code to get ip from request.
"""
from uuid import uuid4
from ipware.ip import get_ip
from ipware.ip import get_client_ip
def real_ip(group, request): # pylint: disable=unused-argument
return get_ip(request)
return get_client_ip(request)[0]
def request_post_email(group, request) -> str: # pylint: disable=unused-argument