def post(self, request): form = SearchForm(request.POST) if not form.is_valid(): listing = \ InteServiceApplication.objects.all().order_by('-pk') else: listing = search_application(InteServiceApplication, form) return ManageView.manage(request, listing, form)
def post(self, request): form = SearchForm(request.POST) if not form.is_valid(): listing = InteServiceApplication.objects.all().order_by('-pk') else: listing = search_application(InteServiceApplication, form).order_by('-pk') return render( request, 'list.html', { 'page': generate_page(listing, request), 'title': u'西南综合服务楼场地申请', 'form': form })
def post(self, request): form = SearchForm(request.POST) if not form.is_valid(): listing = \ StudentActivityCenterApplication.objects.all().order_by('-pk') else: listing = search_application(StudentActivityCenterApplication, form).order_by('-pk') return render( request, 'list.html', { 'page': generate_page(listing, request), 'title': u'学生活动中心场地申请', 'form': form })