mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Refs #33308 -- Moved psycopg2 imports to the psycopg_any module.
This commit is contained in:
committed by
Mariusz Felisiak
parent
c5ed884eab
commit
2ebfbd894e
@@ -11,9 +11,9 @@ from .models import (
|
||||
)
|
||||
|
||||
try:
|
||||
from psycopg2.extras import DateRange, NumericRange
|
||||
from django.db.backends.postgresql.psycopg_any import DateRange, NumericRange
|
||||
except ImportError:
|
||||
pass # psycopg2 isn't installed.
|
||||
pass # psycopg isn't installed.
|
||||
|
||||
|
||||
class BulkSaveTests(PostgreSQLTestCase):
|
||||
|
||||
Reference in New Issue
Block a user