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)
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)