-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exporting tabes data with render_FOO column #458
Exporting tabes data with render_FOO column #458
Comments
Yes, you are right. Should be fixed (and tested). |
Just pushed ecfe1c4, which adds this logic:
please test branch
|
Works fine, except when unicode characters are in the table (running under python 2.7 & django 1.8.16) In that case, following error occurs: UnicodeDecodeError at |
Interesting. I just added '毛泽东' to a table and tried exporting to csv, xls and xlsx. It just works. Can you provide some more detail? I tried with these versions: django-tables2: current master. |
I had a European accent 'é' in one of the column titles and had the crash I
described.
D.
2017-06-28 21:46 GMT+02:00 Jan Pieter Waagmeester <notifications@github.com>
:
… Interesting.
I just added '毛泽东' to a table and tried exporting to csv, xls and xlsx. It
just works. Can you provide some more detail? I tried with these versions:
django-tables2: current master.
python 2.7.10
Django==1.8.16
tablib==0.11.4
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#458 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAM0XrCA_ot4Txp3pc5wLz4nd4_aNXilks5sIq1-gaJpZM4OFiCj>
.
|
Ah, I didn't try adding unicode to the headers. This is a failing test: def test_exporting_unicode_header():
class Table(tables.Table):
name = tables.Column(verbose_name='hé')
exporter = TableExport('xls', Table([]))
exporter.export() |
Verified, OK |
thanks for checking, released 1.9.1. |
When exporting a table using this approach
https://github.com/bradleyayers/django-tables2/blob/master/docs/pages/export.rst
... a field rendered with the render_FOO technique remains empty in the export.
The text was updated successfully, but these errors were encountered: