diff --git a/config/django/base.py b/config/django/base.py index 318a5f98..8d03232d 100644 --- a/config/django/base.py +++ b/config/django/base.py @@ -109,7 +109,6 @@ DATABASES = { "default": env.db("DATABASE_URL", default="postgres:///styleguide_example"), } -DATABASES["default"]["ATOMIC_REQUESTS"] = True if os.environ.get("GITHUB_WORKFLOW"): DATABASES = { @@ -122,6 +121,7 @@ "PORT": "5432", } } +DATABASES["default"]["ATOMIC_REQUESTS"] = True # Password validation # https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators