Skip to content

Add new option xlsx_specify_headers #114

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nathan-osman
Copy link

The existing xlsx_ignore_headers option allows specific fields to be excluded when enumerating fields in the serializer. This pull request adds the ability to explicitly specify the fields that should be included:

xlsx_specify_headers = ['title', 'age', ...]

The absence of the option will result in the default behavior. A test was added to ensure correct behavior.

The xlsx_ignore_headers option allows specific fields to be excluded when
enumerating the serializer. This adds the ability to explicitly specify the
fields that should be included. The absence of the option will result in the
default behavior.
Copy link

codecov bot commented May 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
drf_excel/renderers.py 86.88% <100.00%> (+0.14%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@FlipperPA
Copy link
Member

@nathan-osman Thanks so much for the contributions! We'll get the workflows run today and review this week.

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

Successfully merging this pull request may close these issues.

2 participants