From dae392d4c39b48c64a6df438cdca012bb8886672 Mon Sep 17 00:00:00 2001 From: ludo Date: Wed, 8 Jun 2016 18:37:38 +0200 Subject: [PATCH] Fixe la liste des spectacles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le template essayait d'itérer sur un queryset au lieu d'une liste --- bda/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bda/views.py b/bda/views.py index 39a6e760..f4495f55 100644 --- a/bda/views.py +++ b/bda/views.py @@ -314,7 +314,7 @@ class SpectacleListView(ListView): template_name = 'spectacle_list.html' def get_queryset(self): self.tirage = get_object_or_404(Tirage, id=self.kwargs['tirage_id']) - categories = self.tirage.spectacle_set + categories = self.tirage.spectacle_set.all() return categories def get_context_data(self, **kwargs): context = super(SpectacleListView, self).get_context_data(**kwargs)