Skip to content

Commit

Permalink
[#1777] Add organisation name to user management search
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperBrandt committed Sep 29, 2015
1 parent d079b28 commit 721eb6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion akvo/rsr/views/my_rsr.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,9 @@ def user_management(request):
for q_item in q_list:
employments = employments.filter(user__username__icontains=q_item) | \
employments.filter(user__first_name__icontains=q_item) | \
employments.filter(user__last_name__icontains=q_item)
employments.filter(user__last_name__icontains=q_item) | \
employments.filter(organisation__name__icontains=q_item) | \
employments.filter(organisation__long_name__icontains=q_item)

qs = remove_empty_querydict_items(request.GET)
page = request.GET.get('page')
Expand Down

0 comments on commit 721eb6e

Please sign in to comment.