Example #1
0
File: adminx.py Project: mgrai/mmcp
 def get(self, request, *args, **kwargs):
     context = super(ProjectApplyListView, self).get_context()
     projects = getProjects(self)
     context['projects'] = projects
     context['categories'] = Category.objects.all()
     return TemplateResponse(request, self.list_template, context,
                             current_app=self.admin_site.name)
Example #2
0
 def get(self, request, *args, **kwargs):
     context = super(ProjectApplyListView, self).get_context()
     projects = getProjects(self)
     context['projects'] = projects
     context['categories'] = Category.objects.all()
     return TemplateResponse(request,
                             self.list_template,
                             context,
                             current_app=self.admin_site.name)
Example #3
0
 def get(self, request, *args, **kwargs):
     context = super(ProjectReceivingListView, self).get_context()
     projects = getProjects(self)
     context['projects'] = projects
     
     vendors = getAllParentVendor(self)
     context['vendors'] = vendors
     
     return TemplateResponse(request, self.receiving_list_template, context,
                             current_app=self.admin_site.name)