From f01d117ce6366c4e9f584c6ffd9c17e088a384fc Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 22 Dec 2021 22:25:02 +0100 Subject: [PATCH] providers/proxy: fix imports in migrations Signed-off-by: Jens Langhammer --- .../providers/proxy/migrations/0001_squashed_0014_proxy_v2.py | 3 ++- authentik/providers/proxy/migrations/0014_proxy_v2.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/authentik/providers/proxy/migrations/0001_squashed_0014_proxy_v2.py b/authentik/providers/proxy/migrations/0001_squashed_0014_proxy_v2.py index 367a08b31..b4bb365ce 100644 --- a/authentik/providers/proxy/migrations/0001_squashed_0014_proxy_v2.py +++ b/authentik/providers/proxy/migrations/0001_squashed_0014_proxy_v2.py @@ -10,7 +10,8 @@ import authentik.providers.proxy.models def migrate_defaults(apps: Apps, schema_editor: BaseDatabaseSchemaEditor): - from authentik.providers.proxy.models import JWTAlgorithms, ProxyProvider + from authentik.providers.oauth2.models import JWTAlgorithms + from authentik.providers.proxy.models import ProxyProvider db_alias = schema_editor.connection.alias for provider in ProxyProvider.objects.using(db_alias).filter(jwt_alg=JWTAlgorithms.RS256): diff --git a/authentik/providers/proxy/migrations/0014_proxy_v2.py b/authentik/providers/proxy/migrations/0014_proxy_v2.py index f53c66b8f..3f31f8407 100644 --- a/authentik/providers/proxy/migrations/0014_proxy_v2.py +++ b/authentik/providers/proxy/migrations/0014_proxy_v2.py @@ -6,7 +6,8 @@ from django.db.backends.base.schema import BaseDatabaseSchemaEditor def migrate_defaults(apps: Apps, schema_editor: BaseDatabaseSchemaEditor): - from authentik.providers.proxy.models import JWTAlgorithms, ProxyProvider + from authentik.providers.oauth2.models import JWTAlgorithms + from authentik.providers.proxy.models import ProxyProvider db_alias = schema_editor.connection.alias for provider in ProxyProvider.objects.using(db_alias).filter(jwt_alg=JWTAlgorithms.RS256):