stages/otp_: fix flows having no title

This commit is contained in:
Jens Langhammer 2020-09-25 18:12:59 +02:00
parent 84da454612
commit d278acb83b
2 changed files with 8 additions and 2 deletions

View File

@ -18,7 +18,10 @@ def create_default_setup_flow(apps: Apps, schema_editor: BaseDatabaseSchemaEdito
flow, _ = Flow.objects.using(db_alias).update_or_create( flow, _ = Flow.objects.using(db_alias).update_or_create(
slug="default-otp-static-configure", slug="default-otp-static-configure",
designation=FlowDesignation.STAGE_CONFIGURATION, 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( stage, _ = OTPStaticStage.objects.using(db_alias).update_or_create(

View File

@ -19,7 +19,10 @@ def create_default_setup_flow(apps: Apps, schema_editor: BaseDatabaseSchemaEdito
flow, _ = Flow.objects.using(db_alias).update_or_create( flow, _ = Flow.objects.using(db_alias).update_or_create(
slug="default-otp-time-configure", slug="default-otp-time-configure",
designation=FlowDesignation.STAGE_CONFIGURATION, 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( stage, _ = OTPTimeStage.objects.using(db_alias).update_or_create(