mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
ADO-2947420 - fix tests for django32, fix six
This commit is contained in:
parent
523206d736
commit
a0e7705ad5
1 changed files with 1 additions and 2 deletions
|
|
@ -1,7 +1,6 @@
|
|||
from socket import inet_pton, AF_INET6, error
|
||||
|
||||
from django.core.cache import cache
|
||||
from django.utils import six
|
||||
|
||||
from axes.conf import settings
|
||||
from axes.models import AccessAttempt
|
||||
|
|
@ -16,7 +15,7 @@ def query2str(items, max_length=1024):
|
|||
via excessively large payloads.
|
||||
"""
|
||||
return '\n'.join([
|
||||
'%s=%s' % (k, v) for k, v in six.iteritems(items)
|
||||
'%s=%s' % (k, v) for k, v in items.items()
|
||||
if k != settings.AXES_PASSWORD_FORM_FIELD
|
||||
][:int(max_length / 2)])[:max_length]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue