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 })
def get(self, request): listing = InteServiceApplication.objects.all().order_by('-pk') return render( request, 'list.html', { 'page': generate_page(listing, request), 'title': u'西南综合服务楼场地申请', 'form': SearchForm() })
def get(self, request): listing = MeetingRoomApplication.objects.all().order_by('-pk') return render( request, 'list.html', { 'page': generate_page(listing, request), 'title': u'会议室使用申请', 'form': SearchForm() })
def get(self, request): listing = StudentActivityCenterApplication.objects.all().order_by( '-pk') return render( request, 'list.html', { 'page': generate_page(listing, request), 'title': u'学生活动中心场地申请', 'form': SearchForm() })
def get(self, request): return ManageView.manage(request, InteServiceApplication.objects.all(), SearchForm())
def get(self, request): return ManageView.manage(request, MeetingRoomApplication.objects.all(), SearchForm())
def get(self, request): return ManageView.manage(request, ExhibitApplication.objects.all(), SearchForm())
def get(self, request): return ManageView.manage( request, StudentActivityCenterApplication.objects.all(), SearchForm())