jieter / django-tables2

django-tables2 - An app for creating HTML tables
https://django-tables2.readthedocs.io/en/latest/
Other
1.9k stars 429 forks source link

Narrow csv output (feature) #961

Open szabozoltan69 opened 1 month ago

szabozoltan69 commented 1 month ago

Is there an option to have the opportunity to keep "multiple values" in the same column? Most of csv renderers flatten such multiplications, so create new columns for them, but it would be fine to have the opportunity to keep the column structure and repeat rows instead (with iterating the multiple values in the same column). An example: for a, b, (c, d, e), f: a b c f a b d f a b e f should be the result. Is it possible to do this?

mkalioby commented 3 days ago

I think you shall split it in the view before giving it to the table, and export it.