From 4d69364b9c70d01e520212e82ebd63889ff0325b Mon Sep 17 00:00:00 2001 From: Benard Ebinu Date: Tue, 9 Jan 2018 10:44:20 -0800 Subject: [PATCH] DIV-676: Display fact sheet D when children of marriage and financial support pre-qual questions indicate so --- edivorce/apps/core/templates/question/06_children_facts.html | 2 +- edivorce/apps/core/utils/derived.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 %}

Child(ren) 19 Years or Older (Fact Sheet D)

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):