Skip to content

Commit

Permalink
very small hotfix to check if registration status is null before atte…
Browse files Browse the repository at this point in the history
…mpting to set (#303)
  • Loading branch information
happycodemonkey authored Aug 28, 2024
1 parent 58d08ea commit 135e169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apcd_cms/src/apps/utils/registrations_data_formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def _set_registration(reg, reg_ents, reg_conts):
city=reg[7],
state=reg[8]
),
'reg_status': reg[3].title(),
'reg_status': reg[3].title() if reg[3] else None,
'reg_id': reg[0],
'year': reg[10],
'view_modal_content': _set_modal_content(reg, reg_ents, reg_conts, org_types)
Expand Down

0 comments on commit 135e169

Please sign in to comment.