def get(self, request, *args, **kwargs): context = super(PaymentSummaryView, self).get_context() years = getYears() months = getMonths() context['years'] = years['years'] context['months'] = months['months'] context['year'] = str(years['year']) context['month'] = months['month'] return TemplateResponse(request, self.payment_summary_template, context, current_app=self.admin_site.name)
def get(self, request, *args, **kwargs): context = super(ProjectUsedListView, self).get_context() companies = getAllCompany(self) years = getYears() context['companies'] = companies context['years'] = years['years'] context['result'] = {'year' : years['year']} return TemplateResponse(request, self.project_used_list_template, context, current_app=self.admin_site.name)