1
0
Fork 0

Improves user admin filter behavior

This commit is contained in:
Mouse Reeve 2021-09-06 08:54:57 -07:00
parent 07ba880ff7
commit a68196d9bb
2 changed files with 3 additions and 3 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)