From 04f9b43221d988fba393f3e4754a3e9fb6097ef0 Mon Sep 17 00:00:00 2001 From: Camilo Nova Date: Tue, 21 Nov 2017 16:59:42 -0500 Subject: [PATCH] Fixes bad import --- axes/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/axes/utils.py b/axes/utils.py index b55ea7f..60cd1ea 100644 --- a/axes/utils.py +++ b/axes/utils.py @@ -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):