Merge pull request #1366 from bookwyrm-social/user-admin
User admin view improvements
This commit is contained in:
@ -31,8 +31,8 @@ class UserAdminList(View):
|
||||
if username:
|
||||
filters["username__icontains"] = username
|
||||
scope = request.GET.get("scope")
|
||||
if scope:
|
||||
filters["local"] = scope == "local"
|
||||
if scope and scope == "local":
|
||||
filters["local"] = True
|
||||
|
||||
users = models.User.objects.filter(**filters)
|
||||
|
||||
|
Reference in New Issue
Block a user