djangosnippets.org: Latest snippets tagged with 'export-csv'https://djangosnippets.org/tags/export-csv_1/2016-12-01T04:07:49.905209-06:00A streamable "export to CSV" admin action
2016-12-01T04:07:49.905209-06:00namlookhttps://djangosnippets.org/snippets/10595/<p>This snippets is inspired from <a href="https://djangosnippets.org/snippets/2995/">#2995</a> but add the following:</p>
<ul>
<li>get rid of <code>singledispatch</code> so we can use it with python2 without pip installing anything</li>
<li>streaming capabilities</li>
<li>the configuration params (header, fields, exclude...) are passed to the action function so we don't pollute the ModelAdmin class</li>
<li>fix utf8 issue in …</li></ul>
Freely redistributableGeneric CSV export admin action factory with relationship spanning fields and labels, and many to many fields
2014-02-01T19:44:04.482375-06:00selimnairbhttps://djangosnippets.org/snippets/3022/<p>Based on <a href="https://djangosnippets.org/snippets/2868/">#2868</a></p>
<p>Now with support for writing the absolute URL of file fields</p>
Freely redistributableGeneric CSV export admin action factory with relationship spanning fields and labels
2012-12-21T15:41:10.986777-06:00blackrobothttps://djangosnippets.org/snippets/2868/<p>Based on <a href="../2712/">#2712</a></p>
<p>"This snippet creates a simple generic export to csv action that you can specify the fields you want exported and the labels used in the header row for each field. It expands on #2020 by using list comprehensions instead of sets so that you also control the …</p>
Freely redistributable