Skip to content
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

Use column_labels for column headers while exporting table to csv #869

Open
1 task done
inikishin opened this issue Jan 10, 2025 · 0 comments
Open
1 task done

Use column_labels for column headers while exporting table to csv #869

inikishin opened this issue Jan 10, 2025 · 0 comments

Comments

@inikishin
Copy link

Checklist

  • There are no similar issues or pull requests for this yet.

Is your feature related to a problem? Please describe.

I would like to see human readable column headers in csv, similar to column headers in admin panel.

Describe the solution you would like.

Use column_labels for column headers while exporting table to csv.

Let's look how it work now. For example ModelAdmin has following attribute:

column_labels = {
        "is_platform": "zero cycle",
        "is_platform_for_every_section": "zero cycle for section",
        "is_foundation": "fundament",
    }

csv header looks like this:

image

I suggest use values of column_labels for headers in csv like this:

image

Describe alternatives you considered

No response

Additional context

I'll provide a PR for this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant