mirror of
https://github.com/jazzband/django-axes.git
synced 2026-05-05 06:04:47 +00:00
Fix mypy errors in the utils module
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
This commit is contained in:
parent
a0b672be6e
commit
aec59a97bc
1 changed files with 3 additions and 2 deletions
|
|
@ -228,9 +228,10 @@ def get_client_str(username: str, ip_address: str, user_agent: str, path_info: s
|
|||
Example log format would be ``{username: "example", ip_address: "127.0.0.1", path_info: "/example/"}``
|
||||
"""
|
||||
|
||||
client_dict = OrderedDict() # type: OrderedDict
|
||||
|
||||
if settings.AXES_VERBOSE:
|
||||
# Verbose mode logs every attribute that is given
|
||||
client_dict = OrderedDict()
|
||||
# Verbose mode logs every attribute that is available
|
||||
client_dict['username'] = username
|
||||
client_dict['ip_address'] = ip_address
|
||||
client_dict['user_agent'] = user_agent
|
||||
|
|
|
|||
Loading…
Reference in a new issue