forked from mirrors/bookwyrm
Adds email filtering to user admin view
This commit is contained in:
parent
605af3bf88
commit
59096ae9ec
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,9 @@ class UserAdminList(View):
|
|||
scope = request.GET.get("scope")
|
||||
if scope and scope == "local":
|
||||
filters["local"] = True
|
||||
email = request.GET.get("email")
|
||||
if email:
|
||||
filters["email__endswith"] = email
|
||||
|
||||
users = models.User.objects.filter(**filters)
|
||||
|
||||
|
|
Loading…
Reference in a new issue