diff options
| author | lyova24 <lengthylyova@gmail.com> | 2025-08-05 18:14:25 +0700 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2025-10-13 17:27:07 -0400 |
| commit | 54cfb5f328177b6fbf4eae827fbcbd757185dc85 (patch) | |
| tree | c669417eeffd8fb3770ebaf3c8ecfc9d3c113caa /django/contrib/postgres/fields | |
| parent | d5543a23d32d6438edae060081a054f617193341 (diff) | |
Replaced multi-level relative imports with absolute imports in django/.
Diffstat (limited to 'django/contrib/postgres/fields')
| -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 |
3 files changed, 6 insertions, 4 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__ = [ |
