forked from DGNum/gestioCOF
Mise en forme
- Suppression des espaces autour des signes `=` dans les keyword arguments. Cf [PEP8](https://www.python.org/dev/peps/pep-0008/) - Suppression d'une virgule inutile.
This commit is contained in:
parent
8121dde36a
commit
ae3677701d
1 changed files with 15 additions and 15 deletions
|
@ -105,8 +105,8 @@ def inscription(request, tirage):
|
||||||
participant, created = Participant.objects.get_or_create(user=request.user)
|
participant, created = Participant.objects.get_or_create(user=request.user)
|
||||||
choices = participant.choixspectacle_set.order_by("priority").all()
|
choices = participant.choixspectacle_set.order_by("priority").all()
|
||||||
return render(request, "resume_inscription.html", {"error_title": "C'est fini !", "error_description": u"Tirage au sort dans la journée !", "choices": choices})
|
return render(request, "resume_inscription.html", {"error_title": "C'est fini !", "error_description": u"Tirage au sort dans la journée !", "choices": choices})
|
||||||
BdaFormSet = inlineformset_factory(Participant, ChoixSpectacle, fields =
|
BdaFormSet = inlineformset_factory(Participant, ChoixSpectacle,
|
||||||
("spectacle","double_choice","priority"), formset = BaseBdaFormSet)
|
fields=("spectacle","double_choice","priority"), formset=BaseBdaFormSet)
|
||||||
participant, created = Participant.objects.get_or_create(user=request.user)
|
participant, created = Participant.objects.get_or_create(user=request.user)
|
||||||
success = False
|
success = False
|
||||||
stateerror = False
|
stateerror = False
|
||||||
|
@ -125,7 +125,7 @@ def inscription(request, tirage):
|
||||||
success = True
|
success = True
|
||||||
formset = BdaFormSet(instance=participant)
|
formset = BdaFormSet(instance=participant)
|
||||||
else:
|
else:
|
||||||
formset = BdaFormSet(instance = participant, )
|
formset = BdaFormSet(instance=participant)
|
||||||
dbstate = _hash_queryset(participant.choixspectacle_set.all())
|
dbstate = _hash_queryset(participant.choixspectacle_set.all())
|
||||||
total_price = 0
|
total_price = 0
|
||||||
for choice in participant.choixspectacle_set.filter(tirage=tirage).all():
|
for choice in participant.choixspectacle_set.filter(tirage=tirage).all():
|
||||||
|
|
Loading…
Reference in a new issue