I think it is better to return an specify mimetype:
HttpResponse(result.getvalue(), mimetype='application/pdfy')