Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions djqscsv/djqscsv.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ def write_csv(queryset, file_obj, **kwargs):
if extra_columns:
field_names += extra_columns

aggregate_columns = list(values_qs.query.aggregate_select)
if aggregate_columns:
field_names += aggregate_columns

if field_order:
# go through the field_names and put the ones
# that appear in the ordering list first
Expand Down