Fixed a test failure introduced in 55a11683f7
.
This commit is contained in:
parent
d34b94b00f
commit
8ef060e0e6
|
@ -2199,7 +2199,7 @@ class AdminSearchTest(TestCase):
|
||||||
from django.contrib.admin.views.main import TO_FIELD_VAR
|
from django.contrib.admin.views.main import TO_FIELD_VAR
|
||||||
response = self.client.get('/test_admin/admin/auth/user/?q=joe&%s=username' % TO_FIELD_VAR)
|
response = self.client.get('/test_admin/admin/auth/user/?q=joe&%s=username' % TO_FIELD_VAR)
|
||||||
self.assertContains(response, "\n1 user\n")
|
self.assertContains(response, "\n1 user\n")
|
||||||
self.assertContains(response, '<input type="hidden" name="t" value="username"/>', html=True)
|
self.assertContains(response, '<input type="hidden" name="_to_field" value="username"/>', html=True)
|
||||||
|
|
||||||
def test_exact_matches(self):
|
def test_exact_matches(self):
|
||||||
response = self.client.get('/test_admin/admin/admin_views/recommendation/?q=bar')
|
response = self.client.get('/test_admin/admin/admin_views/recommendation/?q=bar')
|
||||||
|
|
Loading…
Reference in New Issue