Py3 allows to shorten super()

This commit is contained in:
Aurélien Delobelle 2018-01-16 16:22:52 +01:00
parent 5a5b60ec4d
commit 42e762bc4a
11 changed files with 57 additions and 57 deletions

View file

@ -628,7 +628,7 @@ class SpectacleListView(ListView):
return categories
def get_context_data(self, **kwargs):
context = super(SpectacleListView, self).get_context_data(**kwargs)
context = super().get_context_data(**kwargs)
context['tirage_id'] = self.tirage.id
context['tirage_name'] = self.tirage.title
return context