diff options
author | Jacob Hodgdon <jhodgdon@iol.unh.edu> | 2021-08-24 15:48:36 -0400 |
---|---|---|
committer | Raven Hodgdon <jhodgdon@iol.unh.edu> | 2021-09-14 16:57:19 -0400 |
commit | eb75b380a32c65dc8d0857bae093c7a96f30f024 (patch) | |
tree | c23c61a3e16a5d946fd0743748065767b5256fa7 /src/booking | |
parent | 4e8c162a104a46f7625b0ad624285ed39568d3a1 (diff) |
removal of jira
Change-Id: I1b1da49147219d94837cdd50b908ba30f8cf961c
Signed-off-by: Jacob Hodgdon <jhodgdon@iol.unh.edu>
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
Signed-off-by: Raven Hodgdon <jhodgdon@iol.unh.edu>
Diffstat (limited to 'src/booking')
-rw-r--r-- | src/booking/quick_deployer.py | 1 | ||||
-rw-r--r-- | src/booking/stats.py | 2 | ||||
-rw-r--r-- | src/booking/urls.py | 2 | ||||
-rw-r--r-- | src/booking/views.py | 1 |
4 files changed, 2 insertions, 4 deletions
diff --git a/src/booking/quick_deployer.py b/src/booking/quick_deployer.py index 5e5bc8b..9806348 100644 --- a/src/booking/quick_deployer.py +++ b/src/booking/quick_deployer.py @@ -227,7 +227,6 @@ def create_from_API(body, user): data['scenario'] = None data['image'] = Image.objects.get(pk=booking_info['imageLabID']) - data['resource_template'] = ResourceTemplate.objects.get(pk=booking_info['templateID']) data['lab'] = data['resource_template'].lab data['owner'] = user diff --git a/src/booking/stats.py b/src/booking/stats.py index 626ed79..70f91fa 100644 --- a/src/booking/stats.py +++ b/src/booking/stats.py @@ -104,5 +104,5 @@ class StatisticsManager(object): "user": [x, users], "utils": [in_use, not_in_use, maintenance], "projects": [project_keys, project_counts], - "colors": anuket_colors if os.environ['TEMPLATE_OVERRIDE_DIR'] == 'laas' else lfedge_colors + "colors": anuket_colors if os.environ.get('TEMPLATE_OVERRIDE_DIR') == 'laas' else lfedge_colors } diff --git a/src/booking/urls.py b/src/booking/urls.py index cdf18ae..0b60351 100644 --- a/src/booking/urls.py +++ b/src/booking/urls.py @@ -38,7 +38,7 @@ from booking.views import ( booking_modify_image ) -app_name = "booking" +app_name = 'booking' urlpatterns = [ url(r'^detail/(?P<booking_id>[0-9]+)/$', booking_detail_view, name='detail'), url(r'^(?P<booking_id>[0-9]+)/$', booking_detail_view, name='booking_detail'), diff --git a/src/booking/views.py b/src/booking/views.py index 2b910e7..a418c82 100644 --- a/src/booking/views.py +++ b/src/booking/views.py @@ -127,7 +127,6 @@ class ResourceBookingsJSON(View): 'start', 'end', 'purpose', - 'jira_issue_status', 'config_bundle__name' ) return JsonResponse({'bookings': list(bookings)}) |