code: def legacy_requests_view(request, rtype):
      
      if not rtype in ['food', 'maintenance']:
          raise Http404
      requests_dict = [] # [(req, [req_responses]), (req2, [req2_responses]), ...]
      requests = TeacherRequest.objects.filter(request_type=rtype)
      request_count = requests.count()
      paginator = Paginator(requests, 50)
  
      page = request.GET.get('page')
      try:
          requests = paginator.page(page)
      except PageNotAnInteger:
          requests = paginator.page(1)
      except EmptyPage:
          requests = paginator.page(paginator.num_pages)
      for req in requests:
          requests_dict.append(
              (req, TeacherResponse.objects.filter(request=req),)
          )
      return render_to_response(
          'teacher_requests.html',
          {'page_name': "Legacy {rtype} Requests".format(rtype=rtype.title()),
           'requests_dict': requests_dict,
           'requests': requests,
           'request_type': rtype.title(),
           'request_count': request_count,},
          context_instance=RequestContext(request)
      )
docs: View to see legacy requests of rtype request type, which should be either
      'food' or 'maintenance'.