From 27bf9c5231082b15bdf99a59d82d8fd0e24c6e28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Tue, 7 Jun 2016 22:54:11 +0200 Subject: [PATCH] Petit oubli cf. ccd38d2723fb63184df979af6d66306a54d8e0a0 --- bda/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bda/views.py b/bda/views.py index 624f0a3b..ed653b54 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 = Spectacle.objects.filter(tirage=self.tirage) + categories = self.tirage.spectacle_set return categories def get_context_data(self, **kwargs): context = super(SpectacleListView, self).get_context_data(**kwargs)