# TODO comment this
@login_required(login_url=login*)
der reserve (request:
customer = Customer.objects.get(pk=request.user.pk)
basket = customer.basket.split(*.”)
basket.remove (*’*)
totalPrice = sum([Item.objects.get(pk=itemID).Price for itemiD in basket])
styles = [Style.objects.get(pk=styleD) for stylelD in basket
itemLines = [r'(style.ItemID.Title): (style.Size)-(style.Colour'” for style in styles]
context = (‘user”: request.user, “itemLines”: itemLines, “totalPrice”: totalPrice, “mediaURL”: settings.MEDIA_ROOT)
retum render(request, “checkout.html”, context)
GIPHY App Key not set. Please check settings