Closed notanumber closed 5 years ago
Great idea! Can you give this branch a whirl and see if it works for ya?
https://github.com/wharton/drf-renderer-xlsx/tree/feature/get-filename-method
BTW, you are @notanumber, you are a free man! 🔢
This has been published to PyPI as version 0.3.5.
Looks good, thanks! I'll upgrade and give it a whirl shortly.
Would it make sense to mirror how most of the DRF & Django's CBVs work by having a
get_
method forget_filename
that would allow a user to dynamically set the filename when using theXLSXFileMixin
?Maybe as simple as: