Éclaircissement du code
This commit is contained in:
parent
f14a99cb07
commit
13858b87f3
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue