* INCR-240: Run python-modernize and isort on openedx/core/djangoapps/util * INCR-240: [ADD] Missing module docstring at ratelimit
11 lines
164 B
Python
11 lines
164 B
Python
"""
|
|
Code to get ip from request.
|
|
"""
|
|
from __future__ import absolute_import
|
|
|
|
from ipware.ip import get_ip
|
|
|
|
|
|
def real_ip(group, request):
|
|
return get_ip(request)
|