From 5b9e32445d74a44c2a337eb675c6ab2f70fda204 Mon Sep 17 00:00:00 2001 From: Valentin Deniaud Date: Wed, 20 Jul 2022 17:45:54 +0200 Subject: [PATCH] authenticators: update password authenticator in data migration (#67563) --- .../apps/authenticators/migrations/0003_auto_20220413_1504.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authentic2/apps/authenticators/migrations/0003_auto_20220413_1504.py b/src/authentic2/apps/authenticators/migrations/0003_auto_20220413_1504.py index 7e0073ad..7f9e1254 100644 --- a/src/authentic2/apps/authenticators/migrations/0003_auto_20220413_1504.py +++ b/src/authentic2/apps/authenticators/migrations/0003_auto_20220413_1504.py @@ -9,7 +9,7 @@ def create_login_password_authenticator(apps, schema_editor): password_settings = kwargs_settings.get('password', {}) LoginPasswordAuthenticator = apps.get_model('authenticators', 'LoginPasswordAuthenticator') - LoginPasswordAuthenticator.objects.get_or_create( + LoginPasswordAuthenticator.objects.update_or_create( slug='password-authenticator', defaults={ 'order': password_settings.get('priority', 0), -- 2.30.2