Updated to the latest rosarior/django-sending repository changeset

This commit is contained in:
Roberto Rosario
2011-03-25 16:24:45 -04:00
parent 1c00514fa3
commit a07b4d0fb3
5 changed files with 73 additions and 15 deletions

View File

@@ -18,7 +18,7 @@ def _convert_file_to_url(filename):
return u''.join(url)
def sendfile(request, filename):
def sendfile(request, filename, **kwargs):
response = HttpResponse()
response['Location'] = _convert_file_to_url(filename)
# need to destroy get_host() to stop django