forked from DGNum/gestioCOF
Merge branch 'Kerl/fix_44_tirage' into 'master'
Supprime les bonnes attributions lors d'un tirage. Ne supprime plus toutes les attributions en lançant un tirage mais seulement les attributions du tirage que l'on lance. Fixes #44 See merge request !39
This commit is contained in:
commit
1092b5f266
1 changed files with 3 additions and 1 deletions
|
@ -237,7 +237,9 @@ def do_tirage(request, tirage_id):
|
|||
# FIXME: Établir les conditions de validations (formulaire ?)
|
||||
# cf. issue #32
|
||||
if False:
|
||||
Attribution.objects.all().delete()
|
||||
Attribution.objects.filter(
|
||||
spectacle__tirage=tirage_elt
|
||||
).delete()
|
||||
for (show, members, _) in results:
|
||||
for (member, _, _, _) in members:
|
||||
attrib = Attribution(spectacle=show, participant=member)
|
||||
|
|
Loading…
Reference in a new issue