diff options
| author | django-bot <ops@djangoproject.com> | 2022-02-03 20:24:19 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-07 20:37:05 +0100 |
| commit | 9c19aff7c7561e3a82978a272ecdaad40dda5c00 (patch) | |
| tree | f0506b668a013d0063e5fba3dbf4863b466713ba /django/db/models/__init__.py | |
| parent | f68fa8b45dfac545cfc4111d4e52804c86db68d3 (diff) | |
Refs #33476 -- Reformatted code with Black.
Diffstat (limited to 'django/db/models/__init__.py')
| -rw-r--r-- | django/db/models/__init__.py | 99 |
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", ] |
