forked from DGNum/gestioCOF
Empêche le tirage
This commit is contained in:
parent
759893f728
commit
e29184e7d5
1 changed files with 6 additions and 5 deletions
11
bda/views.py
11
bda/views.py
|
@ -229,11 +229,12 @@ def do_tirage(request, tirage_id):
|
||||||
members2 = members2.items()
|
members2 = members2.items()
|
||||||
data["members2"] = sorted(members2, key=lambda m: m[0].user.last_name)
|
data["members2"] = sorted(members2, key=lambda m: m[0].user.last_name)
|
||||||
# À partir d'ici, le tirage devient effectif
|
# À partir d'ici, le tirage devient effectif
|
||||||
Attribution.objects.all().delete()
|
if False:
|
||||||
for (show, members, _) in results:
|
Attribution.objects.all().delete()
|
||||||
for (member, _, _, _) in members:
|
for (show, members, _) in results:
|
||||||
attrib = Attribution(spectacle=show, participant=member)
|
for (member, _, _, _) in members:
|
||||||
attrib.save()
|
attrib = Attribution(spectacle=show, participant=member)
|
||||||
|
attrib.save()
|
||||||
return render(request, "bda-attrib-extra.html", data)
|
return render(request, "bda-attrib-extra.html", data)
|
||||||
else:
|
else:
|
||||||
return render(request, "bda-attrib.html", data)
|
return render(request, "bda-attrib.html", data)
|
||||||
|
|
Loading…
Reference in a new issue