1
0
Fork 0

Merge pull request #1366 from bookwyrm-social/user-admin

User admin view improvements
This commit is contained in:
Mouse Reeve 2021-09-06 10:54:31 -07:00 committed by GitHub
commit c8f148acb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 102 additions and 9 deletions

View file

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