Éclaircissement du code

This commit is contained in:
Martin Pépin 2016-06-05 23:13:22 +02:00
parent f14a99cb07
commit 13858b87f3

View file

@ -129,8 +129,10 @@ def inscription(request, tirage_id):
{ "error_title": "C'est fini !", { "error_title": "C'est fini !",
"error_description": u"Tirage au sort dans la journée !", "error_description": u"Tirage au sort dans la journée !",
"choices": choices}) "choices": choices})
BdaFormSet = inlineformset_factory(Participant, ChoixSpectacle, BdaFormSet = inlineformset_factory(Participant,
fields=("spectacle","double_choice","priority"), formset=BaseBdaFormSet) ChoixSpectacle,
fields=("spectacle","double_choice","priority"),
formset=BaseBdaFormSet)
participant, created = Participant.objects.get_or_create( participant, created = Participant.objects.get_or_create(
user=request.user, tirage=tirage) user=request.user, tirage=tirage)
success = False success = False