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:
parent
5f9ad17201
commit
4bd494db42
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user