From 2ebb82b5f344de1e17abd70c51c4cce765761dd1 Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Thu, 23 Sep 2021 16:37:43 -0400 Subject: Fix collaborator field with recent changes Signed-off-by: Sawyer Bergeron Change-Id: Id305de9b1567adf103c47d5180b0b28ebfdf1b5e --- src/booking/lib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/booking/lib.py') diff --git a/src/booking/lib.py b/src/booking/lib.py index 7a4c261..8c87979 100644 --- a/src/booking/lib.py +++ b/src/booking/lib.py @@ -28,9 +28,9 @@ def get_user_items(exclude=None): for up in qs: item = { 'id': up.id, - 'expanded_name': up.full_name, + 'expanded_name': up.full_name if up.full_name else up.user.username, 'small_name': up.user.username, - 'string': up.email_addr + 'string': up.email_addr if up.email_addr else up.user.username, } items[up.id] = item return items -- cgit 1.2.3-korg