mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
@@ -10,7 +10,8 @@ from pretix.base.signals import validate_cart
|
||||
from pretix.multidomain.urlreverse import eventreverse
|
||||
from pretix.presale.checkoutflow import get_checkout_flow
|
||||
from pretix.presale.views import (
|
||||
allow_frame_if_namespaced, get_cart, iframe_entry_view_wrapper,
|
||||
allow_frame_if_namespaced, cart_exists, get_cart,
|
||||
iframe_entry_view_wrapper,
|
||||
)
|
||||
|
||||
|
||||
@@ -27,7 +28,7 @@ class CheckoutView(View):
|
||||
def dispatch(self, request, *args, **kwargs):
|
||||
self.request = request
|
||||
|
||||
if not get_cart(request) and "async_id" not in request.GET:
|
||||
if not cart_exists(request) and "async_id" not in request.GET:
|
||||
messages.error(request, _("Your cart is empty"))
|
||||
return redirect(self.get_index_url(self.request))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user