From d278acb83b253641944f8b000fcc403452486bc9 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 25 Sep 2020 18:12:59 +0200 Subject: [PATCH] stages/otp_: fix flows having no title --- ...3_default_setup_flow.py.py => 0003_default_setup_flow.py} | 5 ++++- .../stages/otp_time/migrations/0004_default_setup_flow.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) rename passbook/stages/otp_static/migrations/{0003_default_setup_flow.py.py => 0003_default_setup_flow.py} (91%) diff --git a/passbook/stages/otp_static/migrations/0003_default_setup_flow.py.py b/passbook/stages/otp_static/migrations/0003_default_setup_flow.py similarity index 91% rename from passbook/stages/otp_static/migrations/0003_default_setup_flow.py.py rename to passbook/stages/otp_static/migrations/0003_default_setup_flow.py index 6bad90c52..773b686fe 100644 --- a/passbook/stages/otp_static/migrations/0003_default_setup_flow.py.py +++ b/passbook/stages/otp_static/migrations/0003_default_setup_flow.py @@ -18,7 +18,10 @@ def create_default_setup_flow(apps: Apps, schema_editor: BaseDatabaseSchemaEdito flow, _ = Flow.objects.using(db_alias).update_or_create( slug="default-otp-static-configure", designation=FlowDesignation.STAGE_CONFIGURATION, - defaults={"name": "Setup Static OTP Tokens"}, + defaults={ + "name": "default-otp-static-configure", + "title": "Setup Static OTP Tokens", + }, ) stage, _ = OTPStaticStage.objects.using(db_alias).update_or_create( diff --git a/passbook/stages/otp_time/migrations/0004_default_setup_flow.py b/passbook/stages/otp_time/migrations/0004_default_setup_flow.py index 46f019062..2c38df4a0 100644 --- a/passbook/stages/otp_time/migrations/0004_default_setup_flow.py +++ b/passbook/stages/otp_time/migrations/0004_default_setup_flow.py @@ -19,7 +19,10 @@ def create_default_setup_flow(apps: Apps, schema_editor: BaseDatabaseSchemaEdito flow, _ = Flow.objects.using(db_alias).update_or_create( slug="default-otp-time-configure", designation=FlowDesignation.STAGE_CONFIGURATION, - defaults={"name": "Setup Two-Factor authentication"}, + defaults={ + "name": "default-otp-time-configure", + "title": "Setup Two-Factor authentication", + }, ) stage, _ = OTPTimeStage.objects.using(db_alias).update_or_create(