aboutsummaryrefslogtreecommitdiffstats
path: root/src/account/views.py
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2021-04-06 17:38:49 +0000
committerGerrit Code Review <gerrit@opnfv.org>2021-04-06 17:38:49 +0000
commit241ff304980c8bf542fdd1a2a47f73accf912ee1 (patch)
tree0192336d1a72df98ca5056b190f6d29e683079a0 /src/account/views.py
parentf1456220fcc098cb0f5e9fc60124680ff8aba6af (diff)
parentd007fa661e2faf77e70cb75c8d520941e907ebf7 (diff)
Merge "Remove exposure of users on dashboard"
Diffstat (limited to 'src/account/views.py')
-rw-r--r--src/account/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/account/views.py b/src/account/views.py
index 2e1ab94..b74126e 100644
--- a/src/account/views.py
+++ b/src/account/views.py
@@ -209,7 +209,7 @@ class UserListView(TemplateView):
template_name = "account/user_list.html"
def get_context_data(self, **kwargs):
- users = User.objects.all()
+ users = UserProfile.objects.filter(public_user=True).select_related('user')
context = super(UserListView, self).get_context_data(**kwargs)
context.update({'title': "Dashboard Users", 'users': users})
return context