示例#1
0
 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)
示例#2
0
 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
         })
示例#3
0
 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
         })