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
from django.core.urlresolvers import reverse | |
class telephoneUpdate(UpdateView): | |
def get_success_url(self): | |
return reverse("url_name",args=[self.request.user.id]) | |
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 |
NewerOlder