Closed LeeHanYeong closed 3 years ago
@FlipperPA Can you check this PR? For now, XLSXRenderer can only be used in the return value of the response made by the request.
In places like Celery Task or Django runcommand, you can use the basic datatypes dict or list instead of ReturnDict or ReturnList. This PR was actually created after trying to make the result of the HTTP request the same as the result of the Celery Task.
Thanks for the PR! This has been released in version 0.4.1: https://pypi.org/project/drf-renderer-xlsx/0.4.1/
When rendering, it lets determine if the data is dict or list. (Previously, it checks if it is ReturnDict or ReturnList)
This change allows the renderer to use user-generated data.
ex)