diff --git a/bda/views.py b/bda/views.py index 2ae72e9c..fd0a0cdc 100644 --- a/bda/views.py +++ b/bda/views.py @@ -296,15 +296,15 @@ def spectacle(request, tirage_id, spectacle_id): participants = {} for attrib in attributions: participant = attrib.participant - participant_info = {'lastname':participant.user.last_name, + participant_info = {'lastname': participant.user.last_name, 'name': participant.user.get_full_name, - 'username':participant.user.username, - 'email':participant.user.email, - 'given':attrib.given, - 'paid':participant.paid, - 'nb_places':1} + 'username': participant.user.username, + 'email': participant.user.email, + 'given': attrib.given, + 'paid': participant.paid, + 'nb_places': 1} if participant.id in participants: - participants[participant.id]['nb_places'] = 2 + participants[participant.id]['nb_places'] += 1 else: participants[participant.id] = participant_info