mirror of
https://github.com/django/django.git
synced 2025-07-28 15:44:20 +00:00
Refs #33308 -- Moved psycopg2 imports to the psycopg_any module.
This commit is contained in:
parent
c5ed884eab
commit
2ebfbd894e
13 changed files with 38 additions and 29 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue