From b30e6494ca40fe916c86fba7ffe891d20f759e8b Mon Sep 17 00:00:00 2001 From: Denislav Davidov Date: Thu, 13 Feb 2025 16:12:09 +0000 Subject: [PATCH] adding check for null budget_type --- chartofaccountDIT/exportcsv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chartofaccountDIT/exportcsv.py b/chartofaccountDIT/exportcsv.py index 6b0fb663..d087252f 100644 --- a/chartofaccountDIT/exportcsv.py +++ b/chartofaccountDIT/exportcsv.py @@ -210,7 +210,7 @@ def _export_programme_iterator(queryset): yield [ obj.programme_code, obj.programme_description, - obj.budget_type.budget_type, + obj.budget_type.budget_type if obj.budget_type else "", obj.active, ]