aboutsummaryrefslogtreecommitdiffstats
path: root/src/booking
diff options
context:
space:
mode:
authorSean Smith <ssmith@iol.unh.edu>2020-09-08 15:13:23 -0400
committerSean Smith <ssmith@iol.unh.edu>2021-03-24 16:10:47 -0400
commitf6753ae2c5f54fb79375214590e565218b1bf0d7 (patch)
treed6591f1c375de80c7fc8083441c9cc42e7cd643a /src/booking
parent85598208ad7b65de9e4c60b509331a9b6ce46e52 (diff)
Fixes error on installer fail
Signed-off-by: Sean Smith <ssmith@iol.unh.edu> Change-Id: I823f3c5dd2b7677b428b88e1af4bba78d7dc698c
Diffstat (limited to 'src/booking')
-rw-r--r--src/booking/views.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/booking/views.py b/src/booking/views.py
index c41a7d6..66cb594 100644
--- a/src/booking/views.py
+++ b/src/booking/views.py
@@ -63,9 +63,12 @@ def quick_create(request):
return redirect(reverse('booking:booking_detail', kwargs={'booking_id': booking.id}))
except Exception as e:
messages.error(request, "Whoops, an error occurred: " + str(e))
+ context.update(drop_filter(request.user))
return render(request, 'booking/quick_deploy.html', context)
else:
messages.error(request, "Looks like the form didn't validate. Check that you entered everything correctly")
+ context['status'] = 'false'
+ context.update(drop_filter(request.user))
return render(request, 'booking/quick_deploy.html', context)