Created
April 28, 2015 23:03
-
-
Save leonardoo/b63510cfee7d87c66e85 to your computer and use it in GitHub Desktop.
This file contains 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
response = StreamingHttpResponse(streaming_content = inventory.fileInvoice, | |
content_type='application/vnd.ms-excel') | |
response['Content-Disposition'] = 'attachment; filename=' + inventory.fileInvoice.name | |
return response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment