Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render function instead of render_to_response #111

Merged
merged 9 commits into from
Jun 10, 2016
Prev Previous commit
Next Next commit
replaced render_to_reponse with render function in views/raw
Asif Saifuddin Auvi committed May 29, 2016
commit da39323833cf03b045aaf2cb175a08acd930dc97
4 changes: 2 additions & 2 deletions silk/views/raw.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.http import HttpResponse
from django.shortcuts import render_to_response
from django.shortcuts import render
from django.utils.decorators import method_decorator
from django.views.generic import View
from silk.auth import login_possibly_required, permissions_possibly_required
@@ -23,7 +23,7 @@ def get(self, request, request_id):
elif typ == 'response':
Logger.debug(silk_request.response.raw_body_decoded)
body = silk_request.response.raw_body_decoded if subtyp == 'raw' else silk_request.response.body
return render_to_response('silk/raw.html', {
return render('silk/raw.html', {
'body': body
})
else: