Skip to content

feature (admin): added action for extracting user details in CSV

Calum Mackervoy requested to merge 7-extract-user-csv into master

Closes #7 (closed)

Adds a command for extracting a CSV with the following header titles:

email,last_name,first_name,password_reset_link

And a generated name for the csv file like so:

djangoldp-bernadins-export-395ee370-7d79-496f-b00d-9a93e4d799ea.csv

A note on StreamingHttpResponse:

Streaming responses will tie a worker process for the entire duration of the response. This may result in poor performance

I used StreamingHttpResponse instead of HttpResponse because it is more appropriate for large-scale files (and I made the assumption that the datasets extracted at one time might be large)

Merge request reports