From 38d725f3fcd7e47b23f83bddf3e1f5bb73e37881 Mon Sep 17 00:00:00 2001 From: Charles Shin Date: Tue, 22 Jan 2019 18:36:16 -0800 Subject: [PATCH] DIV-922: Fixed the review page shows only one child. --- edivorce/apps/core/templatetags/summary_format.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/edivorce/apps/core/templatetags/summary_format.py b/edivorce/apps/core/templatetags/summary_format.py index a7f4c3f5..dc76049c 100644 --- a/edivorce/apps/core/templatetags/summary_format.py +++ b/edivorce/apps/core/templatetags/summary_format.py @@ -144,7 +144,7 @@ def format_children(context, source): child_support_orders = {'want_parenting_arrangements', 'order_respecting_arrangement', 'order_for_child_support'} - tags = '' + tags = format_html('') # process mapped questions first working_source = source.copy() for title, questions in question_to_heading.items(): @@ -198,7 +198,8 @@ def format_children(context, source): child_counter = 1 for child in json.loads(item['value']): tags = format_html( - '{}{}{}{}{}{}', + '{}{}{}{}{}{}{}', + tags, format_review_row_heading('Child {}'.format(child_counter), 'review-child-heading'), format_row('Child\'s name', child['child_name']), format_row('Birth date', child['child_birth_date']),