Browse Source

[enh] Use render instead of render_response

ljf 7 years ago
parent
commit
51b6f94b68
1 changed files with 2 additions and 3 deletions
  1. 2 3
      coin/members/views.py

+ 2 - 3
coin/members/views.py

@@ -2,7 +2,7 @@
 from __future__ import unicode_literals
 
 from django.template import RequestContext
-from django.shortcuts import render_to_response
+from django.shortcuts import render_to_response, render
 from django.contrib.auth.decorators import login_required
 from django.http import Http404
 from django.conf import settings
@@ -39,8 +39,7 @@ def detail(request):
 
         context['form'] = form
 
-    return render_to_response('members/detail.html', context,
-                              context_instance=RequestContext(request))
+    return render(request, 'members/detail.html', context)
 
 
 @login_required