Refs #33308 -- Moved psycopg2 imports to the psycopg_any module.

This commit is contained in:
Florian Apolloner 2022-12-12 08:25:05 +01:00 committed by Mariusz Felisiak
parent c5ed884eab
commit 2ebfbd894e
13 changed files with 38 additions and 29 deletions

View file

@ -31,8 +31,6 @@ from .models import (
)
try:
from psycopg2.extras import NumericRange
from django.contrib.postgres.aggregates import ArrayAgg
from django.contrib.postgres.expressions import ArraySubquery
from django.contrib.postgres.fields import ArrayField
@ -42,6 +40,7 @@ try:
SplitArrayField,
SplitArrayWidget,
)
from django.db.backends.postgresql.psycopg_any import NumericRange
except ImportError:
pass