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
This commit is contained in:
parent
c81cad77e5
commit
daa8e47090
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 ?)
|
# FIXME: Établir les conditions de validations (formulaire ?)
|
||||||
# cf. issue #32
|
# cf. issue #32
|
||||||
if False:
|
if False:
|
||||||
Attribution.objects.all().delete()
|
Attribution.objects.filter(
|
||||||
|
spectacle__tirage=tirage_elt
|
||||||
|
).all().delete()
|
||||||
for (show, members, _) in results:
|
for (show, members, _) in results:
|
||||||
for (member, _, _, _) in members:
|
for (member, _, _, _) in members:
|
||||||
attrib = Attribution(spectacle=show, participant=member)
|
attrib = Attribution(spectacle=show, participant=member)
|
||||||
|
|
Loading…
Reference in a new issue