Merge remote-tracking branch 'origin/Kerl/fix_bda' into Aufinal/view_spectacles

This commit is contained in:
ludo 2016-06-08 20:22:23 +02:00
commit ec2258d352

View file

@ -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)