From 4c14e88a2564cc65171ee3e3ca2452cfe4b18a46 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 14 Apr 2022 22:28:26 +0200 Subject: [PATCH] flows: pin dependency in migration Signed-off-by: Jens Langhammer --- authentik/flows/migrations/0018_oob_flows.py | 2 +- authentik/flows/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/authentik/flows/migrations/0018_oob_flows.py b/authentik/flows/migrations/0018_oob_flows.py index 38c7c409d..7d146bec1 100644 --- a/authentik/flows/migrations/0018_oob_flows.py +++ b/authentik/flows/migrations/0018_oob_flows.py @@ -130,7 +130,7 @@ class Migration(migrations.Migration): dependencies = [ ("authentik_flows", "0017_auto_20210329_1334"), ("authentik_stages_user_write", "0002_auto_20200918_1653"), - ("authentik_stages_user_login", "__latest__"), + ("authentik_stages_user_login", "0003_session_duration_delta"), ("authentik_stages_password", "0002_passwordstage_change_flow"), ("authentik_policies", "0001_initial"), ("authentik_policies_expression", "0001_initial"), diff --git a/authentik/flows/models.py b/authentik/flows/models.py index 8eb7d62dd..f2d436ee4 100644 --- a/authentik/flows/models.py +++ b/authentik/flows/models.py @@ -231,7 +231,7 @@ class FlowStageBinding(SerializerModel, PolicyBindingModel): return FlowStageBindingSerializer def __str__(self) -> str: - return f"Flow-stage binding #{self.order} to {self.target}" + return f"Flow-stage binding #{self.order} to {self.target_id}" class Meta: