From 1d1554280053d798d8125ab093a5817a50322ede Mon Sep 17 00:00:00 2001 From: Denis Davidov Date: Thu, 13 Feb 2025 16:55:28 +0000 Subject: [PATCH] FFT-189 adding check for null budget_type during excel export (#621) --- chartofaccountDIT/exportcsv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chartofaccountDIT/exportcsv.py b/chartofaccountDIT/exportcsv.py index 6b0fb6632..d087252fd 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, ]