mirror of
https://github.com/jazzband/django-defender.git
synced 2026-03-16 22:10:32 +00:00
more cleanup
This commit is contained in:
parent
333fb2d8ec
commit
a6eb683ea1
2 changed files with 0 additions and 4 deletions
|
|
@ -48,7 +48,4 @@ USERNAME_FORM_FIELD = get_setting('DEFENDER_USERNAME_FORM_FIELD', 'username')
|
|||
LOCKOUT_URL = get_setting('DEFENDER_LOCKOUT_URL')
|
||||
|
||||
|
||||
PROTECTED_LOGINS = get_setting('DEFENDER_PROTECTED_LOGINS',
|
||||
('/accounts/login/',))
|
||||
|
||||
USE_CELERY = get_setting('DEFENDER_USE_CELERY', False)
|
||||
|
|
|
|||
|
|
@ -501,7 +501,6 @@ class AccessAttemptTest(DefenderTestCase):
|
|||
from .admin import AccessAttemptAdmin
|
||||
AccessAttemptAdmin
|
||||
|
||||
@patch('defender.config.PROTECTED_LOGINS', (ADMIN_LOGIN_URL, ))
|
||||
def test_decorator_middleware(self):
|
||||
# because watch_login is called twice in this test (once by the
|
||||
# middleware and once by the decorator) we have half as many attempts
|
||||
|
|
|
|||
Loading…
Reference in a new issue