mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Improve line separator conventions
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
This commit is contained in:
parent
a8732a383d
commit
3c2fb2b335
3 changed files with 3 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
from django.conf.urls import url
|
||||
from django.contrib import admin
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^admin/', admin.site.urls),
|
||||
]
|
||||
|
|
|
|||
|
|
@ -209,6 +209,7 @@ class AccessAttemptTest(TestCase):
|
|||
path_info=request.META.get('PATH_INFO', '<unknown>'),
|
||||
failures_since_start=0,
|
||||
)
|
||||
|
||||
self.assertEqual(cache_hash_key, get_cache_key(attempt))
|
||||
|
||||
@patch('axes.utils.get_client_ip', return_value='127.0.0.1')
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ from axes.models import AccessAttempt
|
|||
|
||||
logger = getLogger(__name__)
|
||||
|
||||
|
||||
def get_axes_cache():
|
||||
return caches[getattr(settings, 'AXES_CACHE', 'default')]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue