From 102d536a72287275c62db73f1a1d84a135d122ec Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 8 Sep 2020 18:18:06 +0200 Subject: [PATCH] flows: fix incorrect pk being used in FlowStageBinding Form --- passbook/flows/forms.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/passbook/flows/forms.py b/passbook/flows/forms.py index 7a4abe0ef..9c4d74781 100644 --- a/passbook/flows/forms.py +++ b/passbook/flows/forms.py @@ -40,7 +40,9 @@ class FlowForm(forms.ModelForm): class FlowStageBindingForm(forms.ModelForm): """FlowStageBinding Form""" - stage = GroupedModelChoiceField(queryset=Stage.objects.all().select_subclasses()) + stage = GroupedModelChoiceField( + queryset=Stage.objects.all().select_subclasses(), to_field_name="stage_uuid" + ) class Meta: