diff --git a/apps/member/views.py b/apps/member/views.py index 73fb4d90..83304b06 100644 --- a/apps/member/views.py +++ b/apps/member/views.py @@ -185,9 +185,9 @@ class UserListView(ProtectQuerysetMixin, LoginRequiredMixin, SingleTableView): Q(first_name__iregex=pattern) | Q(last_name__iregex=pattern) | Q(profile__section__iregex=pattern) - | Q(username__iregex="^" + pattern) - | Q(alias__iregex="^" + pattern) - | Q(normalized_alias__iregex=Alias.normalize("^" + pattern)) + | Q(username__iregex=pattern) + | Q(alias__iregex=pattern) + | Q(normalized_alias__iregex=Alias.normalize(pattern)) ) else: qs = qs.none()