From 721eb6e1bf8071c7bb6f5d5e270d3781d8a4b214 Mon Sep 17 00:00:00 2001 From: Kasper Brandt Date: Tue, 29 Sep 2015 15:04:05 +0300 Subject: [PATCH] [#1777] Add organisation name to user management search --- akvo/rsr/views/my_rsr.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/akvo/rsr/views/my_rsr.py b/akvo/rsr/views/my_rsr.py index 6e0bc81df6..fd2a129f49 100644 --- a/akvo/rsr/views/my_rsr.py +++ b/akvo/rsr/views/my_rsr.py @@ -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')