stages/password: fix change_flow being deleted instead of renamed
This commit is contained in:
parent
769ce1c642
commit
974c2ddb11
|
@ -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()
|
||||
|
|
|
@ -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(
|
||||
|
|
Reference in New Issue