diff options
author | Konstantin Alekseev <mail@kalekseev.com> | 2021-04-26 15:19:13 +0300 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-04-27 10:43:35 +0200 |
commit | 6e742dabc95b00ba896434293556adeb4dbaee8a (patch) | |
tree | 4b55797fca1e697a3698e46291fe9f0751317205 /django/db/backends/postgresql/client.py | |
parent | 187118203197801c6cb72dc8b06b714b23b6dd3d (diff) | |
download | django-6e742dabc95b00ba896434293556adeb4dbaee8a.tar.gz |
Fixed #32687 -- Restored passing process’ environment to underlying tool in dbshell on PostgreSQL.
Regression in bbe6fbb8768e8fb1aecb96d51c049d7ceaf802d3.
Diffstat (limited to 'django/db/backends/postgresql/client.py')
-rw-r--r-- | django/db/backends/postgresql/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/postgresql/client.py b/django/db/backends/postgresql/client.py index 3effab65a8..0effcc44e6 100644 --- a/django/db/backends/postgresql/client.py +++ b/django/db/backends/postgresql/client.py @@ -51,7 +51,7 @@ class DatabaseClient(BaseDatabaseClient): env['PGSSLKEY'] = str(sslkey) if passfile: env['PGPASSFILE'] = str(passfile) - return args, env + return args, (env or None) def runshell(self, parameters): sigint_handler = signal.getsignal(signal.SIGINT) |