From 4c8c81beadf504a9e291190664364cd2fd79c6ea Mon Sep 17 00:00:00 2001 From: TheOrangeOne Date: Tue, 6 Sep 2016 17:51:43 +0100 Subject: [PATCH] just download the file from admin link, it's cleaner --- project/files/views.py | 1 - 1 file changed, 1 deletion(-) diff --git a/project/files/views.py b/project/files/views.py index 56b8c42..feb60b6 100644 --- a/project/files/views.py +++ b/project/files/views.py @@ -46,5 +46,4 @@ def hotlink_file_download(request, id): def uploaded_file(request, filename): file = get_object_or_404(SharedFile, file=request.get_full_path()[1:]) # strip preceding slash response = FileResponse(file) - del response['Content-Disposition'] return response