Changeset - 07e98036b7d2
[Not reviewed]
0 1 0
Luke Hatcher - 12 years ago 2012-07-18 23:21:50
lukeman@gmail.com
handle cases where USE_X_ACCEL_REDIRECT is not defined
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
symposion/proposals/views.py
Show inline comments
...
 
@@ -302,7 +302,7 @@ def document_create(request, proposal_pk):
 
@login_required
 
def document_download(request, pk, *args):
 
    document = get_object_or_404(SupportingDocument, pk=pk)
 
    if settings.USE_X_ACCEL_REDIRECT:
 
    if getattr(settings, "USE_X_ACCEL_REDIRECT", False):
 
        response = HttpResponse()
 
        response["X-Accel-Redirect"] = document.file.url
 
        # delete content-type to allow Gondor to determine the filetype and
0 comments (0 inline, 0 general)