mirror of
https://github.com/jazzband/django-axes.git
synced 2026-05-11 09:03:12 +00:00
Fixed path_info formatting.
This commit is contained in:
parent
082c6ac35d
commit
98b82dd27d
1 changed files with 2 additions and 0 deletions
|
|
@ -45,6 +45,8 @@ if BEHIND_REVERSE_PROXY:
|
|||
def get_client_str(username, ip_address, user_agent=None, path_info=None):
|
||||
|
||||
if VERBOSE:
|
||||
if isinstance(path_info, tuple):
|
||||
path_info = path_info[0]
|
||||
details = "{{user: '{0}', ip: '{1}', user-agent: '{2}', path: '{3}'}}"
|
||||
return details.format(username, ip_address, user_agent, path_info)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue