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()