Tweak bulk deletion test to work around cascading deletions issue
Some checks failed
CI / build (20.x, 3.10) (push) Has been cancelled
CI / build (20.x, 3.11) (push) Has been cancelled
CI / build (20.x, 3.12) (push) Has been cancelled

This commit is contained in:
Jeremy Stretch 2025-07-28 13:22:53 -04:00
parent b4e14cb080
commit 1587600671

View File

@ -858,7 +858,7 @@ class ViewTestCases:
self.assertHttpStatus(self.client.post(self._get_url('bulk_delete'), data), 403) self.assertHttpStatus(self.client.post(self._get_url('bulk_delete'), data), 403)
def test_bulk_delete_objects_with_permission(self): def test_bulk_delete_objects_with_permission(self):
pk_list = list(self._get_queryset().values_list('pk', flat=True)) pk_list = list(self._get_queryset().values_list('pk', flat=True))[:3]
data = { data = {
'pk': pk_list, 'pk': pk_list,
'confirm': True, 'confirm': True,