예제 #1
0
파일: adminx.py 프로젝트: zengkai0209/mmcp
 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)
예제 #2
0
파일: adminx.py 프로젝트: zengkai0209/mmcp
 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)