From 056ee5c51b31484dcc874fe779add051581aa8e9 Mon Sep 17 00:00:00 2001 From: Paul Schilling Date: Thu, 19 Oct 2023 16:45:50 +0200 Subject: [PATCH] Fix process_cases, add default value to getattr --- src/open_inwoner/cms/cases/views/mixins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/open_inwoner/cms/cases/views/mixins.py b/src/open_inwoner/cms/cases/views/mixins.py index ea9a171c72..977ab7b583 100644 --- a/src/open_inwoner/cms/cases/views/mixins.py +++ b/src/open_inwoner/cms/cases/views/mixins.py @@ -165,7 +165,7 @@ def process_cases(self, cases: List[Zaak]) -> List[dict]: "current_status": status_translate.from_glom( case, "status.statustype.omschrijving", default="" ), - "statustype_config": getattr(case, "statustype_config"), + "statustype_config": getattr(case, "statustype_config", None), } updated_cases.append(case_dict) return updated_cases