diff --git a/bda/templates/resume_places.html b/bda/templates/resume_places.html index 4d9a8294..8954d7c3 100644 --- a/bda/templates/resume_places.html +++ b/bda/templates/resume_places.html @@ -12,7 +12,7 @@ {% endfor %}

Total à payer : {{ total|floatformat }}€

-

Exporter au format calendrier (.ics, compatible avec tous les logiciels d'agenda)

+

Exporter au format calendrier (.ics, compatible avec tous les logiciels d'agenda)

{% else %}

Vous n'avez aucune place :(

{% endif %} diff --git a/bda/views.py b/bda/views.py index 7cec5001..b370dd52 100644 --- a/bda/views.py +++ b/bda/views.py @@ -25,15 +25,15 @@ from bda.forms import BaseBdaFormSet, TokenForm, ResellForm @cof_required def etat_places(request, tirage_id): tirage = get_object_or_404(Tirage, id=tirage_id) - spectacles1 = ChoixSpectacles.objetcs.filter(tirage=tirage + spectacles1 = ChoixSpectacle.objects.filter(spectacle__tirage=tirage ).filter(double_choice="1" ).all().values('spectacle','spectacle__title' ).annotate(total=models.Count('spectacle')) - spectacles2 = ChoixSpectacles.objetcs.filter(tirage=tirage + spectacles2 = ChoixSpectacle.objects.filter(spectacle__tirage=tirage ).exclude(double_choice="1" ).all().values('spectacle','spectacle__title' ).annotate(total=models.Count('spectacle')) - spectacles = Spectacle.objects.filter(tirage__id=num_tirage).all() + spectacles = Spectacle.objects.filter(tirage=tirage).all() spectacles_dict = {} total = 0 for spectacle in spectacles: