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

Allow custom properties to export #7

Open
krsoninikhil opened this issue Feb 20, 2020 · 1 comment
Open

Allow custom properties to export #7

krsoninikhil opened this issue Feb 20, 2020 · 1 comment

Comments

@krsoninikhil
Copy link

This is the simplest package I found for exporting data from admin.
Problem that I faced was that datetime fields get exported as UTC timezone, even if timezone is enabled in django settings. I tried adding a custom property in model but the way fields are taken in this package 0 only takes database fields.

queryset = queryset.values_list(*field_names)

Would you be open to have a PR on adding custom properties in exported data?

@vrocha
Copy link
Member

vrocha commented Feb 20, 2020

Yes, either that or making the datatime fields export using the enabled timezone setting (my preference).

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

2 participants