title: django admin - export as csv
body: <p>I am using the following Django Snippet to export the results of the admin change_list page to csv <a href="http://djangosnippets.org/snippets/790/" rel="noreferrer">http://djangosnippets.org/snippets/790/</a></p>
  
  <p>I have this working but currently I can only get it to export the fields which are defined in the <code>list_display</code> variable.</p>
  
  <p>The function accepts a list (named as <code>fields</code>, see below) as a variable which defines which fields you want to export but I can't work out how to pass this into the function.  This is because the function is called using the url pattern which does not include a fields variable.</p>
  
  <pre><code>def admin_list_export(request, model_name, app_label, queryset=None, fields=None, list_display=True): 
  </code></pre>