mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Fixes bad import
This commit is contained in:
parent
726214df05
commit
04f9b43221
1 changed files with 2 additions and 1 deletions
|
|
@ -132,7 +132,8 @@ def reset(ip=None, username=None):
|
|||
|
||||
if attempts:
|
||||
count = attempts.count()
|
||||
from axes.decorators import get_cache_key
|
||||
# import should be here to avoid circular dependency with get_ip
|
||||
from axes.attempts import get_cache_key
|
||||
for attempt in attempts:
|
||||
cache_hash_key = get_cache_key(attempt)
|
||||
if cache.get(cache_hash_key):
|
||||
|
|
|
|||
Loading…
Reference in a new issue