Fix AttributeError when running tests with debug toolbar installed

This commit is contained in:
Kara Engelhardt
2026-04-09 13:21:54 +02:00
committed by pajowu
parent 58cce4b85e
commit 5d7ee584d9
+3
View File
@@ -94,6 +94,9 @@ class DisableMigrations(object):
def __getitem__(self, item):
return None
def setdefault(self, key, default=None):
return
if not os.environ.get("GITHUB_WORKFLOW", ""):
MIGRATION_MODULES = DisableMigrations()