Merge branch 'Aufinal/spectacle_paid' into 'master'

Fix `paid` field in `bda/spectacles`

See merge request klub-dev-ens/gestioCOF!472
This commit is contained in:
Ludovic Stephan 2020-10-29 11:15:41 +01:00
commit 404d3f4f4c
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: