diff options
Diffstat (limited to 'src/booking/views.py')
-rw-r--r-- | src/booking/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/booking/views.py b/src/booking/views.py index 3c95e07..bd57812 100644 --- a/src/booking/views.py +++ b/src/booking/views.py @@ -173,7 +173,7 @@ def booking_modify_image(request, booking_id): if timezone.now() > booking.end: return HttpResponse("unauthorized") new_image = Image.objects.get(id=form.cleaned_data['image_id']) - host = ResourceQuery.get(labid=form.cleaned_data['host_id']) + host = ResourceQuery.get(id=form.cleaned_data['host_id']) host.config.image = new_image host.config.save() JobFactory.reimageHost(new_image, booking, host) |