Skip to content

Commit e559785

Browse files
Merge pull request #1626 from IFRCGo/fix/no-appeal-title-when-void
No appeal title when void
2 parents 710de79 + 55ee3c8 commit e559785

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

api/management/commands/index_and_notify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def construct_template_record(self, rtype, record):
481481
'dtype_id': record.dtype_id,
482482
'visibility': record.visibility,
483483
'other_fields': {
484-
'appeal': record.appeal,
484+
'appeal': record.get_appeal_display(),
485485
'appeal_amount': record.appeal_amount,
486486
'bulletin': record.bulletin,
487487
'countries': ', '.join(i.name for i in record.countries.all()),

notifications/templates/design/main_field_report.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -732,13 +732,13 @@
732732
</tr>
733733
{% endif %}
734734
581 - 733 {% endcomment %}
735-
{% if fr.other_fields.appeal.name != 'NO' %}
735+
{% if fr.other_fields.appeal != 'No' %}
736736
<tr>
737737
<td align="left" style="font-weight: bold" width="30%">
738738
Emergency Appeal
739739
</td>
740740
<td align="left">
741-
{{ fr.other_fields.appeal.name }} </td>
741+
{{ fr.other_fields.appeal }} </td>
742742
</tr>
743743
{% endif %}
744744
{% if fr.other_fields.appeal_amount %}

0 commit comments

Comments
 (0)