Closed rene-armida closed 9 years ago
Also: the "balances" view is still not accessible from the nav bar, and still looks mostly broken, so although the spreadsheet is generated, I don't really know that it does the right thing (since it's hard to compare against the visual output of the normal, non-CSV page)
Some design notes:
CSVDownloadView
is a direct descendant ofView
and defines hooks for providing information about the CSV to be generated (e.g. its filename, column headings, etc.)get_queryset
, coordinates with theSearchableListMixin
andSortableListMixin
fromextra_views
self
.get
that extracts necessary info, and then forward on the call viasuper
.*args
and**kwargs
from theget
method, which would be less annoying)