diff options
author | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2021-04-06 17:38:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2021-04-06 17:38:49 +0000 |
commit | 241ff304980c8bf542fdd1a2a47f73accf912ee1 (patch) | |
tree | 0192336d1a72df98ca5056b190f6d29e683079a0 /src/booking | |
parent | f1456220fcc098cb0f5e9fc60124680ff8aba6af (diff) | |
parent | d007fa661e2faf77e70cb75c8d520941e907ebf7 (diff) |
Merge "Remove exposure of users on dashboard"
Diffstat (limited to 'src/booking')
-rw-r--r-- | src/booking/forms.py | 2 | ||||
-rw-r--r-- | src/booking/lib.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/booking/forms.py b/src/booking/forms.py index e7be70f..9cec35d 100644 --- a/src/booking/forms.py +++ b/src/booking/forms.py @@ -40,7 +40,7 @@ class QuickBookingForm(forms.Form): ) self.fields['users'] = SearchableSelectMultipleField( - queryset=UserProfile.objects.select_related('user').exclude(user=user), + queryset=UserProfile.objects.filter(public_user=True).select_related('user').exclude(user=user), items=get_user_items(exclude=user), required=False, **get_user_field_opts() diff --git a/src/booking/lib.py b/src/booking/lib.py index 8132c75..7a4c261 100644 --- a/src/booking/lib.py +++ b/src/booking/lib.py @@ -23,7 +23,7 @@ def get_user_field_opts(): def get_user_items(exclude=None): - qs = UserProfile.objects.select_related('user').exclude(user=exclude) + qs = UserProfile.objects.filter(public_user=True).select_related('user').exclude(user=exclude) items = {} for up in qs: item = { |