mirror of
https://github.com/django/django.git
synced 2025-07-12 07:45:11 +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
|
@ -25,14 +25,13 @@ from . import PostgreSQLTestCase
|
|||
from .models import HotelReservation, IntegerArrayModel, RangesModel, Room, Scene
|
||||
|
||||
try:
|
||||
from psycopg2.extras import DateRange, NumericRange
|
||||
|
||||
from django.contrib.postgres.constraints import ExclusionConstraint
|
||||
from django.contrib.postgres.fields import (
|
||||
DateTimeRangeField,
|
||||
RangeBoundary,
|
||||
RangeOperators,
|
||||
)
|
||||
from django.db.backends.postgresql.psycopg_any import DateRange, NumericRange
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue