diff --git a/django/contrib/postgres/constraints.py b/django/contrib/postgres/constraints.py index 07dbc8cda1a..fa62379f67c 100644 --- a/django/contrib/postgres/constraints.py +++ b/django/contrib/postgres/constraints.py @@ -3,8 +3,7 @@ import warnings from django.contrib.postgres.indexes import OpClass from django.db import NotSupportedError from django.db.backends.ddl_references import Expressions, Statement, Table -from django.db.models import Deferrable, F, Q -from django.db.models.constraints import BaseConstraint +from django.db.models import BaseConstraint, Deferrable, F, Q from django.db.models.expressions import ExpressionList from django.db.models.indexes import IndexExpression from django.db.models.sql import Query diff --git a/django/db/models/constraints.py b/django/db/models/constraints.py index 721e43ae587..3577c638ef2 100644 --- a/django/db/models/constraints.py +++ b/django/db/models/constraints.py @@ -5,7 +5,7 @@ from django.db.models.indexes import IndexExpression from django.db.models.query_utils import Q from django.db.models.sql.query import Query -__all__ = ["CheckConstraint", "Deferrable", "UniqueConstraint"] +__all__ = ["BaseConstraint", "CheckConstraint", "Deferrable", "UniqueConstraint"] class BaseConstraint: