mirror of
https://github.com/jazzband/django-defender.git
synced 2026-03-16 22:10:32 +00:00
Fix tests for Django 1.7
This commit is contained in:
parent
0454bf741a
commit
43d91ef694
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ def mock_get_connection():
|
|||
|
||||
# Django >= 1.7 compatibility
|
||||
try:
|
||||
LOGIN_FORM_KEY = '<form action="/admin/" method="post" id="login-form">'
|
||||
LOGIN_FORM_KEY = '<form action="/admin/login/" method="post" id="login-form">'
|
||||
ADMIN_LOGIN_URL = reverse('admin:login')
|
||||
except NoReverseMatch:
|
||||
ADMIN_LOGIN_URL = reverse('admin:index')
|
||||
|
|
|
|||
Loading…
Reference in a new issue