def get(self, request):
    ft = LendRecordFilter(request.GET)
    merchandises = ft.qs
    paginator = Paginator(merchandises, 15)
    page_number = request.GET.get('page')
    page_obj = paginator.get_page(page_number)
    return render(request, 'lend_record_list.html', {'records': page_obj, 'filter': ft})
def get(self, request):
    ft = LendRecordFilter(request.GET)
    merchandises = ft.qs
    paginator = Paginator(merchandises, 15)
    page_number = request.GET.get('page')
    page_obj = paginator.get_page(page_number)
    return render(request, 'lend_record_list.html', {'records': page_obj, 'filter': ft})