Fix paid field in bda/spectacles

This commit is contained in:
Ludovic Stephan 2020-10-28 14:35:45 +01:00
parent 35f896b40f
commit 43fcdc8526
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@
<tbody>
{% for participant in participants %}
<tr>
<td data-sort-value="{{ participan.name}}">{{participant.name}}</td>
<td data-sort-value="{{ participant.name}}">{{participant.name}}</td>
<td data-sort-value="{{participant.nb_places}}">{{participant.nb_places}} place{{participant.nb_places|pluralize}}</td>
<td data-sort-value="{{participant.email}}">{{participant.email}}</td>
<td data-sort-value="{{ participant.paid}}" class={%if participant.paid %}"greenratio"{%else%}"redratio"{%endif%}>

View file

@ -706,7 +706,7 @@ def spectacle(request, tirage_id, spectacle_id):
"username": participant.user.username,
"email": participant.user.email,
"given": int(attrib.given),
"paid": True,
"paid": attrib.paid,
"nb_places": 1,
}
if participant.id in participants: