From d4b2e06a67c2e1458305c3eac6c4b2b3e917daf9 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Wed, 20 Nov 2024 09:07:11 -0500 Subject: [PATCH] Fixed #35921 -- Fixed failure when running tests in parallel on postgres. Follow-up to a060a22ee2dde7aa29a5a29120087c4864887325. --- tests/migration_test_data_persistence/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/migration_test_data_persistence/tests.py b/tests/migration_test_data_persistence/tests.py index a04259bba1..ca044f310f 100644 --- a/tests/migration_test_data_persistence/tests.py +++ b/tests/migration_test_data_persistence/tests.py @@ -32,7 +32,7 @@ class MigrationDataPersistenceClassSetup(TransactionTestCase): @classmethod def setUpClass(cls): # Simulate another TransactionTestCase having just torn down. - call_command("flush", verbosity=0, interactive=False) + call_command("flush", verbosity=0, interactive=False, allow_cascade=True) super().setUpClass() cls.book = Book.objects.first()