diff --git a/caluma/caluma_workflow/serializers.py b/caluma/caluma_workflow/serializers.py index a86f021d2..abfce4940 100644 --- a/caluma/caluma_workflow/serializers.py +++ b/caluma/caluma_workflow/serializers.py @@ -37,12 +37,16 @@ def __init__(self, **kwargs): class CaseStatusField(serializers.CalumaChoiceField): - def __init__(self, **kwargs): + # Required for the type system, case status is + # never part of an input + def __init__(self, **kwargs): # pragma: no cover super().__init__([s for s, _ in models.Case.STATUS_CHOICE_TUPLE], **kwargs) class WorkItemStatusField(serializers.CalumaChoiceField): - def __init__(self, **kwargs): + # Required for the type system, workitem status is + # never part of an input + def __init__(self, **kwargs): # pragma: no cover super().__init__([s for s, _ in models.WorkItem.STATUS_CHOICE_TUPLE], **kwargs)