Skip to content

Commit 34d8c78

Browse files
committed
updated INSTALLED_APPS setting for tests
1 parent a38f8b3 commit 34d8c78

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

packages/django-google-spanner/tests/settings.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@
1212

1313
INSTALLED_APPS = [
1414
"django_spanner", # Must be the first entry
15-
"django.contrib.contenttypes",
16-
"django.contrib.auth",
17-
"django.contrib.sites",
18-
"django.contrib.sessions",
19-
"django.contrib.messages",
20-
"django.contrib.staticfiles",
15+
# Comment out these built-in apps to prevent Foreign Key crashes during test flush
16+
# "django.contrib.contenttypes",
17+
# "django.contrib.auth",
18+
# "django.contrib.sites",
19+
# "django.contrib.sessions",
20+
# "django.contrib.messages",
21+
# "django.contrib.staticfiles",
2122
"tests",
2223
]
2324

0 commit comments

Comments
 (0)