Fixes bad import

This commit is contained in:
Camilo Nova 2017-11-21 16:59:42 -05:00
parent 726214df05
commit 04f9b43221

View file

@ -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):