summaryrefslogtreecommitdiff
path: root/tests/migration_test_data_persistence/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/migration_test_data_persistence/tests.py')
-rw-r--r--tests/migration_test_data_persistence/tests.py2
1 files changed, 1 insertions, 1 deletions
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()