mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed #20664 -- Fixed a bug with raw_id_fields on Python 3.
Thanks jefftriplett for the report.
This commit is contained in:
parent
c1284c3d3c
commit
534ced5aad
2 changed files with 11 additions and 3 deletions
|
@ -583,6 +583,14 @@ class AdminViewBasicTest(TestCase):
|
|||
response = self.client.get("/test_admin/admin/admin_views/inquisition/?leader__name=Palin&leader__age=27")
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
def test_popup_dismiss_related(self):
|
||||
"""
|
||||
Regression test for ticket 20664 - ensure the pk is properly quoted.
|
||||
"""
|
||||
actor = Actor.objects.create(name="Palin", age=27)
|
||||
response = self.client.get("/test_admin/admin/admin_views/actor/?%s" % IS_POPUP_VAR)
|
||||
self.assertContains(response, "opener.dismissRelatedLookupPopup(window, '%s')" % actor.pk)
|
||||
|
||||
def test_hide_change_password(self):
|
||||
"""
|
||||
Tests if the "change password" link in the admin is hidden if the User
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue