diff options
Diffstat (limited to 'django/contrib/postgres')
| -rw-r--r-- | django/contrib/postgres/fields/array.py | 5 | ||||
| -rw-r--r-- | django/contrib/postgres/fields/hstore.py | 3 | ||||
| -rw-r--r-- | django/contrib/postgres/fields/ranges.py | 2 | ||||
| -rw-r--r-- | django/contrib/postgres/forms/array.py | 3 |
4 files changed, 7 insertions, 6 deletions
diff --git a/django/contrib/postgres/fields/array.py b/django/contrib/postgres/fields/array.py index ac663830f8..078428416c 100644 --- a/django/contrib/postgres/fields/array.py +++ b/django/contrib/postgres/fields/array.py @@ -2,6 +2,10 @@ import json from django.contrib.postgres import lookups from django.contrib.postgres.forms import SimpleArrayField +from django.contrib.postgres.utils import ( + CheckPostgresInstalledMixin, + prefix_validation_error, +) from django.contrib.postgres.validators import ArrayMaxLengthValidator from django.core import checks, exceptions from django.db.models import Field, Func, IntegerField, Transform, Value @@ -9,7 +13,6 @@ from django.db.models.fields.mixins import CheckFieldDefaultMixin from django.db.models.lookups import Exact, In from django.utils.translation import gettext_lazy as _ -from ..utils import CheckPostgresInstalledMixin, prefix_validation_error from .utils import AttributeSetter __all__ = ["ArrayField"] diff --git a/django/contrib/postgres/fields/hstore.py b/django/contrib/postgres/fields/hstore.py index e28b9f7dbe..48a2e2603d 100644 --- a/django/contrib/postgres/fields/hstore.py +++ b/django/contrib/postgres/fields/hstore.py @@ -2,13 +2,12 @@ import json from django.contrib.postgres import forms, lookups from django.contrib.postgres.fields.array import ArrayField +from django.contrib.postgres.utils import CheckPostgresInstalledMixin from django.core import exceptions from django.db.models import Field, TextField, Transform from django.db.models.fields.mixins import CheckFieldDefaultMixin from django.utils.translation import gettext_lazy as _ -from ..utils import CheckPostgresInstalledMixin - __all__ = ["HStoreField"] diff --git a/django/contrib/postgres/fields/ranges.py b/django/contrib/postgres/fields/ranges.py index 8c3295244b..33c6611f86 100644 --- a/django/contrib/postgres/fields/ranges.py +++ b/django/contrib/postgres/fields/ranges.py @@ -2,6 +2,7 @@ import datetime import json from django.contrib.postgres import forms, lookups +from django.contrib.postgres.utils import CheckPostgresInstalledMixin from django.db import models from django.db.backends.postgresql.psycopg_any import ( DateRange, @@ -12,7 +13,6 @@ from django.db.backends.postgresql.psycopg_any import ( from django.db.models.functions import Cast from django.db.models.lookups import PostgresOperatorLookup -from ..utils import CheckPostgresInstalledMixin from .utils import AttributeSetter __all__ = [ diff --git a/django/contrib/postgres/forms/array.py b/django/contrib/postgres/forms/array.py index fd5cd219f8..ae0c0c462b 100644 --- a/django/contrib/postgres/forms/array.py +++ b/django/contrib/postgres/forms/array.py @@ -2,6 +2,7 @@ import copy from itertools import chain from django import forms +from django.contrib.postgres.utils import prefix_validation_error from django.contrib.postgres.validators import ( ArrayMaxLengthValidator, ArrayMinLengthValidator, @@ -9,8 +10,6 @@ from django.contrib.postgres.validators import ( from django.core.exceptions import ValidationError from django.utils.translation import gettext_lazy as _ -from ..utils import prefix_validation_error - class SimpleArrayField(forms.CharField): default_error_messages = { |
