title: Django filters PDF export
body: <p>I'm trying to export my django-filters query to PDF, but I don't know how to call the function. Actually I have the follow views.py:</p>
  <pre><code>def searchClient (request):
      clientFilter = ClientFilter(request.GET, queryset=Client.objects.all().order_by('id'))
      clients_list = clientFilter.qs
  
      paginated_filtered_clients_list = Paginator(clients_list, settings.ITEMS_PER_PAGE)
      page_number = request.GET.get('page')
      clients_list = paginated_filtered_clients_list.get_page(page_number)
      return render(request,'agenda/searchClient.html', {'clients_list': clients_list, 'clientFilter': clientFilter})
  
  def getsearchedClientsAsPDF (request):
      clientFilter = ClientFilter(request.GET, queryset=Client.objects.all().order_by('id'))
      clients_list = clientFilter.qs
  
      pdf_file = generateTablePDF('Clients', clients_list)
  
      # Download the pdf file
      return FileResponse(pdf_file, as_attachment=True, filename='Clients.pdf')
  </code></pre>
  <p>And this for the HTML.</p>
  <pre><code>&lt;a class=&quot;btn btn-default btn&quot; href=&quot;{% searchClient 1 'page' request.GET.urlencode %}&quot; title=&quot;Bootstrap 3 themes generator&quot;&gt;
  &lt;a class=&quot;btn btn-info btn&quot; href =&quot;{% url 'getsearchedClientsAsPDF' %}&quot; title=&quot;Bootstrap 3 themes generator&quot;&gt;Print&lt;/a&gt;
  </code></pre>
  <p>Basicly, my problem it's thath I can't pass the search request to my <strong>getsearchedClientsAsPDF</strong> view.</p>
  <p>Maybe, there are another way, but i don't know how to resolve it.
  All help its wecome.</p>