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

How to export with ManyToManyField #44

Open
ieiayaobb opened this issue May 1, 2018 · 0 comments
Open

How to export with ManyToManyField #44

ieiayaobb opened this issue May 1, 2018 · 0 comments
Labels
community answer wanted could the community help with this answer

Comments

@ieiayaobb
Copy link

For the ManyToManyField, how to export it with a specified field?
For example:
Model: order, item, and order_to_item(many to many)
I'm going to use make_response_from_query_sets to generate the excel:
excel.make_response_from_query_sets( orders, column_names=['id', 'items__content'], file_type='xls', file_name="Order List"

But I get noting for the 'items__content' column.

@chfw chfw added the community answer wanted could the community help with this answer label Apr 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community answer wanted could the community help with this answer
Projects
None yet
Development

No branches or pull requests

2 participants