forked from DGNum/gestioCOF
Merge branch 'Aufinal/view_spectacles' into 'master'
Ajoute un lien d'ajout à la vue par spectacles Cette MR est acceptable à condition que l'issue #49 soit résolue fixes #34 See merge request !42
This commit is contained in:
commit
40ad1f5f76
3 changed files with 13 additions and 8 deletions
|
@ -303,11 +303,12 @@ def spectacle(request, tirage_id, spectacle_id):
|
|||
'name': participant.user.get_full_name,
|
||||
'username': participant.user.username,
|
||||
'email': participant.user.email,
|
||||
'given': attrib.given,
|
||||
'given': int(attrib.given),
|
||||
'paid': participant.paid,
|
||||
'nb_places': 1}
|
||||
if participant.id in participants:
|
||||
participants[participant.id]['nb_places'] += 1
|
||||
participants[participant.id]['nb_places'] += 1
|
||||
participants[participant.id]['given'] += attrib.given
|
||||
else:
|
||||
participants[participant.id] = participant_info
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue