flows: fix incorrect pk being used in FlowStageBinding Form

This commit is contained in:
Jens Langhammer 2020-09-08 18:18:06 +02:00
parent 9712be847c
commit 102d536a72
1 changed files with 3 additions and 1 deletions

View File

@ -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: