From 43fcdc852664a280239c3fd09f11ba73eed074f2 Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Wed, 28 Oct 2020 14:35:45 +0100 Subject: [PATCH] Fix `paid` field in `bda/spectacles` --- bda/templates/bda/participants.html | 2 +- bda/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bda/templates/bda/participants.html b/bda/templates/bda/participants.html index 492569c9..4ab2d1f7 100644 --- a/bda/templates/bda/participants.html +++ b/bda/templates/bda/participants.html @@ -16,7 +16,7 @@ {% for participant in participants %} - {{participant.name}} + {{participant.name}} {{participant.nb_places}} place{{participant.nb_places|pluralize}} {{participant.email}} diff --git a/bda/views.py b/bda/views.py index 1c54134e..c17b723d 100644 --- a/bda/views.py +++ b/bda/views.py @@ -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: