aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2021-04-12 10:39:00 -0400
committerSawyer Bergeron <sbergeron@iol.unh.edu>2021-04-12 10:39:00 -0400
commit5b32eb4985460ff2e52fdaa89d5b7c94294a61dd (patch)
tree7ea72f1c5be9261a97cdaf96885df14b58225339
parent4f12ae24d0de22f526d6dd59dbc437bdaa1874f1 (diff)
Fix errant change in admin_utils.booking_for_host
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: I5dcd6b773638961a315baccd335745824a25b9c9
-rw-r--r--src/dashboard/admin_utils.py2
1 files changed, 1 insertions, 1 deletions
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)