aboutsummaryrefslogtreecommitdiffstats
path: root/src/booking
diff options
context:
space:
mode:
authorRaven Hodgdon <jhodgdon@iol.unh.edu>2022-01-04 16:50:19 -0500
committerRaven Hodgdon <jhodgdon@iol.unh.edu>2022-02-10 14:43:08 -0500
commit03e71787d6c556078624e3044d722b5781876396 (patch)
tree7e18a8483b90e07d72752089b157f2604e2c305a /src/booking
parentc440a5f2efa3bc4d1f2ec1d90051794c7ca4f330 (diff)
Posix compliant username is shown in booking details
Signed-off-by: jhodgdon <jhodgdon@iol.unh.edu> Change-Id: I35445f771e73bfaf5d552492fd4086bbc1321228
Diffstat (limited to 'src/booking')
-rw-r--r--src/booking/views.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/booking/views.py b/src/booking/views.py
index 940428b..367a18d 100644
--- a/src/booking/views.py
+++ b/src/booking/views.py
@@ -24,7 +24,7 @@ from booking.models import Booking
from booking.stats import StatisticsManager
from booking.forms import HostReImageForm
from workflow.forms import FormUtils
-from api.models import JobFactory
+from api.models import JobFactory, GeneratedCloudConfig
from workflow.views import login
from booking.forms import QuickBookingForm
from booking.quick_deployer import create_from_form, drop_filter
@@ -167,7 +167,8 @@ def booking_detail_view(request, booking_id):
'booking': booking,
'pdf': booking.pdf,
'user_id': user.id,
- 'image_mapping': build_image_mapping(booking.lab, user)
+ 'image_mapping': build_image_mapping(booking.lab, user),
+ 'posix_username': GeneratedCloudConfig._normalize_username(None, user.username)
}
return render(