diff --git a/edivorce/apps/core/templates/question/06_children_facts.html b/edivorce/apps/core/templates/question/06_children_facts.html index d17e9890..95c856ac 100644 --- a/edivorce/apps/core/templates/question/06_children_facts.html +++ b/edivorce/apps/core/templates/question/06_children_facts.html @@ -548,7 +548,7 @@ -{% if children_financial_support != 'NO'%} +{% if children_of_marriage == 'YES' and 'NO' not in children_financial_support %}
diff --git a/edivorce/apps/core/utils/derived.py b/edivorce/apps/core/utils/derived.py index dc57b1c8..caafec33 100644 --- a/edivorce/apps/core/utils/derived.py +++ b/edivorce/apps/core/utils/derived.py @@ -79,7 +79,7 @@ def show_fact_sheet_d(responses): """ support = json.loads(responses.get('children_financial_support', '[]')) - return len(support) > 0 and "NO" not in support + return len(support) > 0 and 'NO' not in support and responses.get('children_of_marriage', '') == 'YES' def show_fact_sheet_e(responses):