Commit 102e832a authored by guanghongwei's avatar guanghongwei

我擦

parent e8ab3e45
...@@ -471,8 +471,8 @@ def chgUser(request): ...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment