summaryrefslogtreecommitdiff
path: root/django/contrib
diff options
context:
space:
mode:
authorlyova24 <lengthylyova@gmail.com>2025-08-05 18:14:25 +0700
committerJacob Walls <jacobtylerwalls@gmail.com>2025-10-13 17:27:07 -0400
commit54cfb5f328177b6fbf4eae827fbcbd757185dc85 (patch)
treec669417eeffd8fb3770ebaf3c8ecfc9d3c113caa /django/contrib
parentd5543a23d32d6438edae060081a054f617193341 (diff)
Replaced multi-level relative imports with absolute imports in django/.
Diffstat (limited to 'django/contrib')
-rw-r--r--django/contrib/postgres/fields/array.py5
-rw-r--r--django/contrib/postgres/fields/hstore.py3
-rw-r--r--django/contrib/postgres/fields/ranges.py2
-rw-r--r--django/contrib/postgres/forms/array.py3
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 = {