修改bug

pull/6/head
ibuler 2015-01-23 00:00:29 +08:00
parent 68f67aecce
commit 7e41f28864
3 changed files with 5 additions and 5 deletions

View File

@ -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'),
)

View File

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

View File

@ -59,9 +59,9 @@
<td class="text-center">{{ user.email }}</td>
<td class="text-center">{{ user.is_active|bool2str }}</td>
<td class="text-center">
<a href="/juser/user_detail/?{{ user.username }}/" class="iframe btn btn-xs btn-primary">详情</a>
<a href="/juser/user_edit/{{ user.username }}" class="btn btn-xs btn-info">编辑</a>
<a href="/juser/user_del/{{ user.username }}" class="btn btn-xs btn-danger">删除</a>
<a href="../user_detail/?{{ user.username }}/" class="iframe btn btn-xs btn-primary">详情</a>
<a href="../user_edit/{{ user.username }}" class="btn btn-xs btn-info">编辑</a>
<a href="../user_del/{{ user.username }}" class="btn btn-xs btn-danger">删除</a>
</td>
</tr>
{% endfor %}