Skip to content

Commit

Permalink
Merge pull request #289 from the-deep/fix-export-row-jump
Browse files Browse the repository at this point in the history
Fix row cell jumping on excel export
  • Loading branch information
AdityaKhatri authored May 2, 2019
2 parents 4376b81 + 118b0dd commit 20da008
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions apps/export/entries/excel_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,7 @@ def add_entries_from_excel_data(self, rows, data, export_data):
col_span,
)
else:
rows.add_value_list(
# Filter if all values are None
[
x for x in export_data.get('values')
if x is not None and not all(y is None for y in x)
],
)
rows.add_value_list(export_data.get('values'))
else:
rows.add_value_list([''] * col_span)

Expand Down

0 comments on commit 20da008

Please sign in to comment.