diff options
| author | Tim Graham <timograham@gmail.com> | 2016-02-06 09:21:05 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-02-08 07:41:56 -0500 |
| commit | 6b689a505c7a89d497e2e8af690fdf5a00780a2d (patch) | |
| tree | 3db8baf1b64c28d5e3264387a14e2493dd0499ec /django/test | |
| parent | 530f0adcf3aab3b3eabdc37a5ea6e8943e8135c4 (diff) | |
[1.9.x] Fixed #26177 -- Fixed a PostgreSQL crash with TIME_ZONE=None and USE_TZ=False.
Backport of 97eb3356b2a7488c8d0ca0e47ef3e538852d44a2 from master
Diffstat (limited to 'django/test')
| -rw-r--r-- | django/test/signals.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/test/signals.py b/django/test/signals.py index f7836637e8..bb04af6efb 100644 --- a/django/test/signals.py +++ b/django/test/signals.py @@ -69,7 +69,7 @@ def update_connections_time_zone(**kwargs): except AttributeError: pass tz_sql = conn.ops.set_time_zone_sql() - if tz_sql: + if tz_sql and conn.timezone_name: with conn.cursor() as cursor: cursor.execute(tz_sql, [conn.timezone_name]) |
