Skip to content

Commit f4dd56b

Browse files
authored
Merge pull request #361 from HackSoftware/replace_databases_default_atomic_requests
Maintaining Query Count Stability in GitHub Workflow with DATABASES Modification
2 parents a41476a + 171806f commit f4dd56b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/django/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@
109109
DATABASES = {
110110
"default": env.db("DATABASE_URL", default="postgres:///styleguide_example"),
111111
}
112-
DATABASES["default"]["ATOMIC_REQUESTS"] = True
113112

114113
if os.environ.get("GITHUB_WORKFLOW"):
115114
DATABASES = {
@@ -122,6 +121,7 @@
122121
"PORT": "5432",
123122
}
124123
}
124+
DATABASES["default"]["ATOMIC_REQUESTS"] = True
125125

126126
# Password validation
127127
# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators

0 commit comments

Comments
 (0)