parent
ccd38d2723
commit
27bf9c5231
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue