club/views: fix call to parent's get_context_data in PosterListView

This commit is contained in:
Skia 2017-12-21 18:02:08 +01:00
parent 22e277d4f7
commit a2ee017668

View File

@ -602,7 +602,7 @@ class MailingAutoCleanView(View):
return redirect('club:mailing', club_id=self.mailing.club.id) return redirect('club:mailing', club_id=self.mailing.club.id)
class PosterListView(PosterListBaseView, CanViewMixin, ClubTabsMixin): class PosterListView(ClubTabsMixin, PosterListBaseView, CanViewMixin):
"""List communication posters""" """List communication posters"""
def get_object(self): def get_object(self):
@ -611,9 +611,7 @@ class PosterListView(PosterListBaseView, CanViewMixin, ClubTabsMixin):
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
kwargs = super(PosterListView, self).get_context_data(**kwargs) kwargs = super(PosterListView, self).get_context_data(**kwargs)
kwargs['app'] = "club" kwargs['app'] = "club"
kwargs['current_tab'] = self.current_tab kwargs['club'] = self.club
kwargs['tabs_title'] = self.get_tabs_title()
kwargs['list_of_tabs'] = self.get_list_of_tabs()
return kwargs return kwargs