Fix AttributeError when running tests with debug toolbar installed

This commit is contained in:
Kara Engelhardt
2026-04-02 10:20:29 +02:00
committed by pajowu
parent 58cce4b85e
commit 5d7ee584d9

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