1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Made BaseConstraint importable from django.db.models.

This commit is contained in:
Gagaro 2022-03-16 16:04:51 +01:00 committed by Mariusz Felisiak
parent 5f9ad17201
commit 4bd494db42
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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: