summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/utils.py
diff options
context:
space:
mode:
authorCaio Ariede <caio.ariede@gmail.com>2015-08-05 11:08:56 -0300
committerTim Graham <timograham@gmail.com>2015-08-07 09:33:17 -0400
commitec9004728ee136e3b7e2b7cd2610203e16b6ce9b (patch)
treebd3fd3d8c729e5e01fc3111696a7d4eaa56d85b0 /django/db/backends/postgresql/utils.py
parent8656cfc4e01332426e5e4b78c20a4e9ec443b293 (diff)
downloaddjango-ec9004728ee136e3b7e2b7cd2610203e16b6ce9b.tar.gz
Fixed #25175 -- Renamed the postgresql_psycopg2 database backend to postgresql.
Diffstat (limited to 'django/db/backends/postgresql/utils.py')
-rw-r--r--django/db/backends/postgresql/utils.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/django/db/backends/postgresql/utils.py b/django/db/backends/postgresql/utils.py
new file mode 100644
index 0000000000..2c03ab36cd
--- /dev/null
+++ b/django/db/backends/postgresql/utils.py
@@ -0,0 +1,7 @@
+from django.utils.timezone import utc
+
+
+def utc_tzinfo_factory(offset):
+ if offset != 0:
+ raise AssertionError("database connection isn't set to UTC")
+ return utc