Esempio n. 1
0
 def get_context_data(self, **kwargs):
     context = super().get_context_data(**kwargs)
     year = self.kwargs.get('year', current_year())
     sponsor_context = self.get_sponsor_context(year)
     extra_context = {
         'slide_images': SliderImage.objects.all().order_by('-title'),
         'entries': MainPageEntry.objects.filter(is_old=False),
     }
     context.update(extra_context)
     context.update(sponsor_context)
     return context
Esempio n. 2
0
 def get_context_data(self, **kwargs):
     context = super().get_context_data(**kwargs)
     year = self.kwargs.get('year', current_year())
     member_context = self.get_member_context(year)
     context.update(member_context)
     return context