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

Number, date, boolean etc. formatting #51

Closed
rptmat57 opened this issue Feb 16, 2022 · 0 comments
Closed

Number, date, boolean etc. formatting #51

rptmat57 opened this issue Feb 16, 2022 · 0 comments

Comments

@rptmat57
Copy link
Contributor

I noticed everything is formatted as a string, mostly due to the sanitization function.
I started looking into it and I think I found a way to customize cell formats etc.

This is probably similar to #4 and I think also overlaps a bit of #49
I also think this would provide the basis for dealing with #44

My idea here is to create XLSXField classes for each type, map it from drf types and value types, and then deal with the formatting of each type directly in the XLSXField class.

For example XLSXNumberField would map from drf IntegerField, FloatField or DecimalField, and also from values of type int, float or decimal.

I will be updating #50 for this.
Hope this is okay

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