djangosnippets.org: Latest snippets posted by jordichttps://djangosnippets.org/users/jordic/2011-09-30T01:13:22.100118-05:00jordicGeneric admin action export selected rows to excel
2011-09-30T01:13:22.100118-05:00jordichttps://djangosnippets.org/snippets/2558/<p>Based on <a href="http://djangosnippets.org/snippets/1697/">http://djangosnippets.org/snippets/1697/</a>
but improved with multiline fields, and unicode chars.
Also it generates an xls file, not a csv one.</p>
<p>Requires, pyExcelerator</p>
<p><em>Usage:</em></p>
<p>Add the code to your project, e.g. a file called actions.py in the project root.</p>
<p>Register the action in your apps admin.py:</p>
<pre><code>from myproject.actions import export_as_xls …</code></pre>
Freely redistributable