summaryrefslogtreecommitdiff
path: root/django/db/models/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/db/models/__init__.py')
-rw-r--r--django/db/models/__init__.py99
1 files changed, 81 insertions, 18 deletions
diff --git a/django/db/models/__init__.py b/django/db/models/__init__.py
index a583af2aff..ffca81de91 100644
--- a/django/db/models/__init__.py
+++ b/django/db/models/__init__.py
@@ -5,14 +5,34 @@ from django.db.models.aggregates import __all__ as aggregates_all
from django.db.models.constraints import * # NOQA
from django.db.models.constraints import __all__ as constraints_all
from django.db.models.deletion import (
- CASCADE, DO_NOTHING, PROTECT, RESTRICT, SET, SET_DEFAULT, SET_NULL,
- ProtectedError, RestrictedError,
+ CASCADE,
+ DO_NOTHING,
+ PROTECT,
+ RESTRICT,
+ SET,
+ SET_DEFAULT,
+ SET_NULL,
+ ProtectedError,
+ RestrictedError,
)
from django.db.models.enums import * # NOQA
from django.db.models.enums import __all__ as enums_all
from django.db.models.expressions import (
- Case, Exists, Expression, ExpressionList, ExpressionWrapper, F, Func,
- OrderBy, OuterRef, RowRange, Subquery, Value, ValueRange, When, Window,
+ Case,
+ Exists,
+ Expression,
+ ExpressionList,
+ ExpressionWrapper,
+ F,
+ Func,
+ OrderBy,
+ OuterRef,
+ RowRange,
+ Subquery,
+ Value,
+ ValueRange,
+ When,
+ Window,
WindowFrame,
)
from django.db.models.fields import * # NOQA
@@ -30,23 +50,66 @@ from django.db.models.query_utils import FilteredRelation, Q
# Imports that would create circular imports if sorted
from django.db.models.base import DEFERRED, Model # isort:skip
from django.db.models.fields.related import ( # isort:skip
- ForeignKey, ForeignObject, OneToOneField, ManyToManyField,
- ForeignObjectRel, ManyToOneRel, ManyToManyRel, OneToOneRel,
+ ForeignKey,
+ ForeignObject,
+ OneToOneField,
+ ManyToManyField,
+ ForeignObjectRel,
+ ManyToOneRel,
+ ManyToManyRel,
+ OneToOneRel,
)
__all__ = aggregates_all + constraints_all + enums_all + fields_all + indexes_all
__all__ += [
- 'ObjectDoesNotExist', 'signals',
- 'CASCADE', 'DO_NOTHING', 'PROTECT', 'RESTRICT', 'SET', 'SET_DEFAULT',
- 'SET_NULL', 'ProtectedError', 'RestrictedError',
- 'Case', 'Exists', 'Expression', 'ExpressionList', 'ExpressionWrapper', 'F',
- 'Func', 'OrderBy', 'OuterRef', 'RowRange', 'Subquery', 'Value',
- 'ValueRange', 'When',
- 'Window', 'WindowFrame',
- 'FileField', 'ImageField', 'JSONField', 'OrderWrt', 'Lookup', 'Transform',
- 'Manager', 'Prefetch', 'Q', 'QuerySet', 'prefetch_related_objects',
- 'DEFERRED', 'Model', 'FilteredRelation',
- 'ForeignKey', 'ForeignObject', 'OneToOneField', 'ManyToManyField',
- 'ForeignObjectRel', 'ManyToOneRel', 'ManyToManyRel', 'OneToOneRel',
+ "ObjectDoesNotExist",
+ "signals",
+ "CASCADE",
+ "DO_NOTHING",
+ "PROTECT",
+ "RESTRICT",
+ "SET",
+ "SET_DEFAULT",
+ "SET_NULL",
+ "ProtectedError",
+ "RestrictedError",
+ "Case",
+ "Exists",
+ "Expression",
+ "ExpressionList",
+ "ExpressionWrapper",
+ "F",
+ "Func",
+ "OrderBy",
+ "OuterRef",
+ "RowRange",
+ "Subquery",
+ "Value",
+ "ValueRange",
+ "When",
+ "Window",
+ "WindowFrame",
+ "FileField",
+ "ImageField",
+ "JSONField",
+ "OrderWrt",
+ "Lookup",
+ "Transform",
+ "Manager",
+ "Prefetch",
+ "Q",
+ "QuerySet",
+ "prefetch_related_objects",
+ "DEFERRED",
+ "Model",
+ "FilteredRelation",
+ "ForeignKey",
+ "ForeignObject",
+ "OneToOneField",
+ "ManyToManyField",
+ "ForeignObjectRel",
+ "ManyToOneRel",
+ "ManyToManyRel",
+ "OneToOneRel",
]