summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/operations.py
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2022-12-12 08:25:05 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-12-12 08:36:17 +0100
commit2ebfbd894e21e1656c1e1f32d98b8df7a32d3649 (patch)
treed74840ed5991c06abd3b09067d683fdc2282d7c6 /django/db/backends/postgresql/operations.py
parentc5ed884eabf3b2b67581c55bf6c87e721f69157f (diff)
downloaddjango-2ebfbd894e21e1656c1e1f32d98b8df7a32d3649.tar.gz
Refs #33308 -- Moved psycopg2 imports to the psycopg_any module.
Diffstat (limited to 'django/db/backends/postgresql/operations.py')
-rw-r--r--django/db/backends/postgresql/operations.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/django/db/backends/postgresql/operations.py b/django/db/backends/postgresql/operations.py
index 62273fc43c..e86628ede2 100644
--- a/django/db/backends/postgresql/operations.py
+++ b/django/db/backends/postgresql/operations.py
@@ -1,11 +1,9 @@
import json
from functools import lru_cache, partial
-from psycopg2.extras import Inet
-from psycopg2.extras import Json as Jsonb
-
from django.conf import settings
from django.db.backends.base.operations import BaseDatabaseOperations
+from django.db.backends.postgresql.psycopg_any import Inet, Jsonb
from django.db.backends.utils import split_tzname_delta
from django.db.models.constants import OnConflict