mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #13163 -- Added ability to show change links on inline objects in admin.
Thanks DrMeers for the suggestion.
This commit is contained in:
committed by
Tim Graham
parent
9a922dcad1
commit
9d9f0acd7e
@@ -256,8 +256,7 @@ class GenericInlineAdminWithUniqueTogetherTest(TestCase):
|
||||
class NoInlineDeletionTest(TestCase):
|
||||
|
||||
def test_no_deletion(self):
|
||||
fake_site = object()
|
||||
inline = MediaPermanentInline(EpisodePermanent, fake_site)
|
||||
inline = MediaPermanentInline(EpisodePermanent, admin_site)
|
||||
fake_request = object()
|
||||
formset = inline.get_formset(fake_request)
|
||||
self.assertFalse(formset.can_delete)
|
||||
|
||||
Reference in New Issue
Block a user