mirror of
https://github.com/django/django.git
synced 2025-08-18 17:50:58 +00:00
Fixed #22894 -- Made admin add related/raw ID fields widgets customizable.
Decoupled behavior and style from the RelatedFieldWidgetWrapper and ForeignKeyRawIdWidget.
This commit is contained in:
parent
ec85df2fa5
commit
68c9a72e29
6 changed files with 72 additions and 40 deletions
|
@ -3990,7 +3990,7 @@ class UserAdminTest(TestCase):
|
|||
response = self.client.get('/test_admin/admin/admin_views/album/add/')
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertContains(response, '/test_admin/admin/auth/user/add')
|
||||
self.assertContains(response, 'class="add-another" id="add_id_owner" onclick="return showAddAnotherPopup(this);"')
|
||||
self.assertContains(response, 'class="add-another" id="add_id_owner"')
|
||||
response = self.client.get('/test_admin/admin/auth/user/add/?_popup=1')
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertNotContains(response, 'name="_continue"')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue