From 5b32eb4985460ff2e52fdaa89d5b7c94294a61dd Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Mon, 12 Apr 2021 10:39:00 -0400 Subject: Fix errant change in admin_utils.booking_for_host Signed-off-by: Sawyer Bergeron Change-Id: I5dcd6b773638961a315baccd335745824a25b9c9 --- src/dashboard/admin_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dashboard') diff --git a/src/dashboard/admin_utils.py b/src/dashboard/admin_utils.py index 186a64f..b105e96 100644 --- a/src/dashboard/admin_utils.py +++ b/src/dashboard/admin_utils.py @@ -281,7 +281,7 @@ def booking_for_host(host_labid: str, lab_username="unh_iol"): @lab_username: param of the form `unh_iol` or similar """ - server = Server.objects.get(lab__lab_user__username=lab_username, lab_username=host_labid) + server = Server.objects.get(lab__lab_user__username=lab_username, labid=host_labid) booking = server.bundle.booking_set.first() print_div() print(booking) -- cgit 1.2.3-korg