summaryrefslogtreecommitdiff
path: root/django/contrib/postgres/fields/ranges.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/contrib/postgres/fields/ranges.py')
-rw-r--r--django/contrib/postgres/fields/ranges.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/django/contrib/postgres/fields/ranges.py b/django/contrib/postgres/fields/ranges.py
index 6230b2f887..d5c438dbdc 100644
--- a/django/contrib/postgres/fields/ranges.py
+++ b/django/contrib/postgres/fields/ranges.py
@@ -1,10 +1,14 @@
import datetime
import json
-from psycopg2.extras import DateRange, DateTimeTZRange, NumericRange, Range
-
from django.contrib.postgres import forms, lookups
from django.db import models
+from django.db.backends.postgresql.psycopg_any import (
+ DateRange,
+ DateTimeTZRange,
+ NumericRange,
+ Range,
+)
from django.db.models.lookups import PostgresOperatorLookup
from .utils import AttributeSetter