|
@@ -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
|