Merge branch 'Kerl/fix_bda' into 'master'
Fixe la liste des spectacles Le template essayait d'itérer sur un manager au lieu d'un queryset, évidemment ça ne marchait pas. See merge request !23
This commit is contained in:
commit
f92c444d7f
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 = 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)
|
||||
|
|
Loading…
Reference in a new issue