Browse Source

DIV-724: Adding missing fields

pull/160/head
Benard Ebinu 8 years ago
parent
commit
605190e595
2 changed files with 11 additions and 2 deletions
  1. +4
    -1
      edivorce/apps/core/templatetags/summary_format.py
  2. +7
    -1
      edivorce/apps/core/utils/question_step_mapping.py

+ 4
- 1
edivorce/apps/core/templatetags/summary_format.py View File

@ -107,7 +107,10 @@ def format_children(source):
value = json.loads(item['value']) value = json.loads(item['value'])
except: except:
pass pass
tags.append(format_row(item['question__name'], value))
if isinstance(value, list):
tags.append(format_row(item['question__name'], process_list(value, q_id)))
else:
tags.append(format_row(item['question__name'], value))
return ''.join(tags) return ''.join(tags)


+ 7
- 1
edivorce/apps/core/utils/question_step_mapping.py View File

@ -74,7 +74,14 @@ question_step_mapping = {
'order_respecting_arrangement', 'order_respecting_arrangement',
'order_for_child_support', 'order_for_child_support',
'child_support_act', 'child_support_act',
'how_will_calculate_income',
'annual_gross_income', 'annual_gross_income',
'spouse_annual_gross_income',
'special_extraordinary_expenses',
'child_support_payor',
'claimants_agree_to_child_support_amount',
'medical_coverage_available',
'child_support_payments_in_arrears',
'number_children_seeking_support', 'number_children_seeking_support',
'child_support_amount_under_high_income', 'child_support_amount_under_high_income',
'percent_income_over_high_income_limit', 'percent_income_over_high_income_limit',
@ -83,7 +90,6 @@ question_step_mapping = {
'agree_to_child_support_amount', 'agree_to_child_support_amount',
'agreed_child_support_amount', 'agreed_child_support_amount',
'reason_child_support_amount', 'reason_child_support_amount',
'spouse_annual_gross_income',
'spouse_number_children_seeking_support', 'spouse_number_children_seeking_support',
'spouse_child_support_amount_under_high_income', 'spouse_child_support_amount_under_high_income',
'spouse_percent_income_over_high_income_limit', 'spouse_percent_income_over_high_income_limit',


Loading…
Cancel
Save