pull/2/head
guanghongwei 2014-09-29 15:58:25 +08:00
parent e8ab3e45f3
commit 102e832a58
1 changed files with 2 additions and 2 deletions

View File

@ -471,8 +471,8 @@ def chgUser(request):
user = User.objects.get(username=username) user = User.objects.get(username=username)
groups = user.group.all() groups = user.group.all()
is_admin = "checked" if user.is_admin else is_admin = '' is_admin = "checked" if user.is_admin else ''
is_superuser = 'checked' if user.is_superuser else is_admin = '' is_superuser = 'checked' if user.is_superuser else ''
if request.method == "GET": if request.method == "GET":
if not username: if not username: