Skip to content

Commit e0137f2

Browse files
committed
Add conditional expression
1 parent e7b83c2 commit e0137f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lung_cancer_screening/questions/jinja2/responses.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<li>What was your sex at birth? {{ response_set.get_sex_at_birth_display() }}</li>
2424
<li>Which of these best describes you? {{ response_set.get_gender_display() }}</li>
2525
<li>What is your ethnic background? {{ response_set.get_ethnicity_display() }}</li>
26-
<li>Have you ever worked in a job where you might have been exposed to asbestos? {{ response_set.get_asbestos_exposure_display() }}</li>
26+
<li>Have you ever worked in a job where you might have been exposed to asbestos? {{ "Yes" if response_set.asbestos_exposure else "No" }}</li>
2727
</ul>
2828

2929
<form action="{{ request.path }}" method="post">

0 commit comments

Comments
 (0)