Skip to content

Commit

Permalink
add search by email, username in financial aid review search (#5135)
Browse files Browse the repository at this point in the history
  • Loading branch information
Umar Asghar authored Dec 27, 2021
1 parent 19a6264 commit aee034e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion financialaid/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ def get_queryset(self):
lambda q, term: (
q |
Q(user__profile__first_name__icontains=term) |
Q(user__profile__last_name__icontains=term)
Q(user__profile__last_name__icontains=term) |
Q(user__username__icontains=term) |
Q(user__email__icontains=term)
),
self.search_query.split(),
Q()
Expand Down

0 comments on commit aee034e

Please sign in to comment.