From 974c2ddb11ce9c63a554c8ed29c037054a093f02 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 25 Sep 2020 20:33:06 +0200 Subject: [PATCH] stages/password: fix change_flow being deleted instead of renamed --- e2e/test_flows_stage_setup.py | 5 ++--- .../stages/password/migrations/0004_auto_20200925_1057.py | 6 ++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/e2e/test_flows_stage_setup.py b/e2e/test_flows_stage_setup.py index 6dd428be8..b24613c2f 100644 --- a/e2e/test_flows_stage_setup.py +++ b/e2e/test_flows_stage_setup.py @@ -23,9 +23,8 @@ class TestFlowsStageSetup(SeleniumTestCase): slug="default-password-change", designation=FlowDesignation.STAGE_CONFIGURATION, ) - stages = PasswordStage.objects.filter(name="default-authentication-password") - stage = stages.first() - stage.change_flow = flow + stage = PasswordStage.objects.get(name="default-authentication-password") + stage.configure_flow = flow stage.save() new_password = generate_client_secret() diff --git a/passbook/stages/password/migrations/0004_auto_20200925_1057.py b/passbook/stages/password/migrations/0004_auto_20200925_1057.py index 3928bd169..e2348735a 100644 --- a/passbook/stages/password/migrations/0004_auto_20200925_1057.py +++ b/passbook/stages/password/migrations/0004_auto_20200925_1057.py @@ -15,8 +15,10 @@ class Migration(migrations.Migration): ] operations = [ - migrations.RemoveField(model_name="passwordstage", name="change_flow",), - migrations.AddField( + migrations.RenameField( + model_name="passwordstage", old_name="change_flow", new_name="configure_flow" + ), + migrations.AlterField( model_name="passwordstage", name="configure_flow", field=models.ForeignKey(