Created
January 16, 2018 19:29
-
-
Save bencleary/203deb0e70fc11fc61ecce10b7379e4e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Csv(GenerateCSVMixin): | |
| custom_headers = [(h.column) for h in Sales._meta.get_fields()] | |
| queryset = Sales.objects.filter(id=27) | |
| custom_queryset = queryset | |
| class Csv(GenerateCSVMixin): | |
| model = Sales | |
| download_file = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment