diff --git a/juser/urls.py b/juser/urls.py index a1d36fcbe..7a3967993 100644 --- a/juser/urls.py +++ b/juser/urls.py @@ -10,5 +10,5 @@ urlpatterns = patterns('juser.views', (r'^user_list/$', 'user_list'), (r'^group_add/$', 'group_add'), (r'^group_list/$', 'group_list'), - (r"^user_detail/$", 'user_detail'), + (r'^user_detail/$', 'user_detail'), ) diff --git a/juser/views.py b/juser/views.py index 95aa07822..543a667d1 100644 --- a/juser/views.py +++ b/juser/views.py @@ -175,7 +175,7 @@ def user_detail(request): if not username: return HttpResponseRedirect('/') user = User.objects.get(username=username) - return render_to_response('juser/user_detail.html', locals(), context_instance=RequestContext(request)) + return render_to_response('juser/user_detail.html', locals()) def db_add_user(**kwargs): diff --git a/templates/juser/user_list.html b/templates/juser/user_list.html index 50749ab9b..adc324b2e 100644 --- a/templates/juser/user_list.html +++ b/templates/juser/user_list.html @@ -59,9 +59,9 @@ {{ user.email }} {{ user.is_active|bool2str }} - 详情 - 编辑 - 删除 + 详情 + 编辑 + 删除 {% endfor %}