mirror of
https://github.com/jazzband/django-defender.git
synced 2026-03-16 22:10:32 +00:00
Fix formatting.
This commit is contained in:
parent
f4e0ddc032
commit
948877c156
1 changed files with 1 additions and 2 deletions
|
|
@ -18,7 +18,6 @@ from .connection import parse_redis_url, get_redis_connection
|
|||
from .models import AccessAttempt
|
||||
from .test import DefenderTestCase, DefenderTransactionTestCase
|
||||
|
||||
|
||||
# Django >= 1.7 compatibility
|
||||
try:
|
||||
LOGIN_FORM_KEY = '<form action="/admin/login/" method="post"'
|
||||
|
|
@ -614,7 +613,7 @@ class AccessAttemptTest(DefenderTestCase):
|
|||
# we shouldn't be blocked.
|
||||
# same IP different, usernames
|
||||
ip = '74.125.239.60'
|
||||
for i in range(0, config.FAILURE_LIMIT+10):
|
||||
for i in range(0, config.FAILURE_LIMIT + 10):
|
||||
login_username = u"{0}{1}".format(username, i)
|
||||
response = self._login(username=login_username, remote_addr=ip)
|
||||
# Check if we are in the same login page
|
||||
|
|
|
|||
Loading…
Reference in a new issue