Skip to content

Commit 51eb79a

Browse files
committed
Fix participant photo
1 parent f2bfe76 commit 51eb79a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

backend/reviews/templates/grant-review.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ <h2 class="grant-header">
114114

115115
<div class="review-row">
116116
<strong>Nationality</strong>
117-
<div>{{grant.get_nationality_display}}</div>
117+
<div>{{grant.nationality}}</div>
118118
</div>
119119

120120
<div class="review-row">

backend/schedule/templates/includes/participant/view_info.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ <h2>{{ title }}</h2>
1616
</a>
1717
</div>
1818

19+
{% if participant.photo_file_id %}
1920
<div class="form-row">
2021
<label>Avatar</label>
21-
<img src="{{participant.photo}}" style="object-fit: contain;" width="200" height="200" />
22+
<img src="{{participant.photo_file.url}}" style="object-fit: contain;" width="200" height="200" />
2223
</div>
24+
{% endif %}
2325

2426
<div class="form-row">
2527
<label>Bio</label>

0 commit comments

Comments
 (0)