From e202fd988b9a794a30de30a8a7d7bdaa0e3d763e Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 22 Mar 2021 19:53:10 +0100 Subject: [PATCH] root: update to isort 5 Signed-off-by: Jens Langhammer --- authentik/core/signals.py | 2 +- authentik/outposts/apps.py | 2 +- authentik/policies/event_matcher/models.py | 4 +--- authentik/stages/email/apps.py | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/authentik/core/signals.py b/authentik/core/signals.py index 3bc4493ec..4f293af09 100644 --- a/authentik/core/signals.py +++ b/authentik/core/signals.py @@ -12,8 +12,8 @@ password_changed = Signal() # pylint: disable=unused-argument def post_save_application(sender, instance, created: bool, **_): """Clear user's application cache upon application creation""" - from authentik.core.models import Application from authentik.core.api.applications import user_app_cache_key + from authentik.core.models import Application if sender != Application: return diff --git a/authentik/outposts/apps.py b/authentik/outposts/apps.py index 485f27e56..08556fd19 100644 --- a/authentik/outposts/apps.py +++ b/authentik/outposts/apps.py @@ -35,8 +35,8 @@ class AuthentikOutpostConfig(AppConfig): def init_local_connection(): """Check if local kubernetes or docker connections should be created""" from authentik.outposts.models import ( - KubernetesServiceConnection, DockerServiceConnection, + KubernetesServiceConnection, ) if Path(SERVICE_TOKEN_FILENAME).exists(): diff --git a/authentik/policies/event_matcher/models.py b/authentik/policies/event_matcher/models.py index 3d381bc46..76930c14f 100644 --- a/authentik/policies/event_matcher/models.py +++ b/authentik/policies/event_matcher/models.py @@ -58,9 +58,7 @@ class EventMatcherPolicy(Policy): @property def serializer(self) -> BaseSerializer: - from authentik.policies.event_matcher.api import ( - EventMatcherPolicySerializer, - ) + from authentik.policies.event_matcher.api import EventMatcherPolicySerializer return EventMatcherPolicySerializer diff --git a/authentik/stages/email/apps.py b/authentik/stages/email/apps.py index 5bd33d6f7..499cc600e 100644 --- a/authentik/stages/email/apps.py +++ b/authentik/stages/email/apps.py @@ -26,8 +26,8 @@ class AuthentikStageEmailConfig(AppConfig): def validate_stage_templates(self): """Ensure all stage's templates actually exist""" - from authentik.stages.email.models import EmailStage, EmailTemplates from authentik.events.models import Event, EventAction + from authentik.stages.email.models import EmailStage, EmailTemplates for stage in EmailStage.objects.all(): try: