Import `ContextDecorator` from std library
https://docs.djangoproject.com/en/4.2/releases/3.0/#removed-private-python-2-compatibility-apis
This commit is contained in:
parent
3ab341a473
commit
049ff451ec
|
@ -1,14 +1,14 @@
|
||||||
import sys
|
import sys
|
||||||
|
from contextlib import ContextDecorator
|
||||||
from threading import local
|
from threading import local
|
||||||
|
|
||||||
from django.contrib.admin.models import LogEntry
|
from django.contrib.admin.models import LogEntry
|
||||||
from django.db.models.signals import pre_delete, post_save, m2m_changed
|
from django.db.models.signals import m2m_changed, post_save, pre_delete
|
||||||
from django.dispatch import receiver
|
from django.dispatch import receiver
|
||||||
from django.utils.decorators import ContextDecorator
|
|
||||||
|
|
||||||
from orchestra.utils.python import OrderedSet
|
from orchestra.utils.python import OrderedSet
|
||||||
|
|
||||||
from . import manager, Operation, helpers
|
from . import Operation, helpers, manager
|
||||||
from .middlewares import OperationsMiddleware
|
from .middlewares import OperationsMiddleware
|
||||||
from .models import BackendLog, BackendOperation
|
from .models import BackendLog, BackendOperation
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue