aboutsummaryrefslogtreecommitdiffstats
path: root/src/booking
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2021-03-29 18:05:56 +0000
committerGerrit Code Review <gerrit@opnfv.org>2021-03-29 18:05:56 +0000
commit7addb00710a5865a9e6bc38f1d826aa0323ee67e (patch)
treec88b37333675ffcc759480a0dd6d90aa42a50fbc /src/booking
parentf6472a3cca58ca428200265acf720174ed36ea7e (diff)
parentf6753ae2c5f54fb79375214590e565218b1bf0d7 (diff)
Merge "Fixes error on installer fail"
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)