forked from DGNum/gestioCOF
Fixe la liste des spectacles
Le template essayait d'itérer sur un queryset au lieu d'une liste
This commit is contained in:
parent
3073c19e22
commit
dae392d4c3
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ class SpectacleListView(ListView):
|
||||||
template_name = 'spectacle_list.html'
|
template_name = 'spectacle_list.html'
|
||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
self.tirage = get_object_or_404(Tirage, id=self.kwargs['tirage_id'])
|
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
|
return categories
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
context = super(SpectacleListView, self).get_context_data(**kwargs)
|
context = super(SpectacleListView, self).get_context_data(**kwargs)
|
||||||
|
|
Loading…
Reference in a new issue