From 2c938ec9dc6bbb22396e84d1ac36dded395534e8 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 24 Aug 2021 12:44:45 +0200 Subject: [PATCH] stages/password: sort backends in migration Signed-off-by: Jens Langhammer --- authentik/stages/password/migrations/0007_app_password.py | 1 + 1 file changed, 1 insertion(+) diff --git a/authentik/stages/password/migrations/0007_app_password.py b/authentik/stages/password/migrations/0007_app_password.py index 41d99be77..50c42488e 100644 --- a/authentik/stages/password/migrations/0007_app_password.py +++ b/authentik/stages/password/migrations/0007_app_password.py @@ -28,6 +28,7 @@ def replace_inbuilt(apps: Apps, schema_editor: BaseDatabaseSchemaEditor): continue stage.backends.remove("django.contrib.auth.backends.ModelBackend") stage.backends.append(BACKEND_INBUILT) + stage.backends.sort() stage.save()