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()