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:
Martin Pépin 2016-06-04 13:25:35 +02:00
parent 8121dde36a
commit ae3677701d

View file

@ -105,8 +105,8 @@ def inscription(request, tirage):
participant, created = Participant.objects.get_or_create(user=request.user)
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})
BdaFormSet = inlineformset_factory(Participant, ChoixSpectacle, fields =
("spectacle","double_choice","priority"), formset = BaseBdaFormSet)
BdaFormSet = inlineformset_factory(Participant, ChoixSpectacle,
fields=("spectacle","double_choice","priority"), formset=BaseBdaFormSet)
participant, created = Participant.objects.get_or_create(user=request.user)
success = False
stateerror = False
@ -125,7 +125,7 @@ def inscription(request, tirage):
success = True
formset = BdaFormSet(instance=participant)
else:
formset = BdaFormSet(instance = participant, )
formset = BdaFormSet(instance=participant)
dbstate = _hash_queryset(participant.choixspectacle_set.all())
total_price = 0
for choice in participant.choixspectacle_set.filter(tirage=tirage).all():