From 59096ae9ec35f20302d19979b33a242d5d7c50eb Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 8 Sep 2021 15:37:52 -0700 Subject: [PATCH] Adds email filtering to user admin view --- bookwyrm/views/user_admin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bookwyrm/views/user_admin.py b/bookwyrm/views/user_admin.py index ac5357a2..574356c2 100644 --- a/bookwyrm/views/user_admin.py +++ b/bookwyrm/views/user_admin.py @@ -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)