Allow buttons to reuse cart (Z#23226853) (#6047)

* Allow buttons to reuse cart (Z#23226853)

* Always keep cart of buttons with items set
This commit is contained in:
pajowu
2026-04-13 19:32:33 +02:00
committed by GitHub
parent f46fc7fa69
commit 059ff6c99b
3 changed files with 72 additions and 24 deletions

View File

@@ -91,6 +91,9 @@ event_patterns = [
re_path(r'w/(?P<cart_namespace>[a-zA-Z0-9]{16})/cart/add',
csrf_exempt(pretix.presale.views.cart.CartAdd.as_view()),
name='event.cart.add'),
re_path(r'w/(?P<cart_namespace>[a-zA-Z0-9]{16})/cart/create',
csrf_exempt(pretix.presale.views.cart.CartCreate.as_view()),
name='event.cart.create'),
re_path(r'unlock/(?P<hash>[a-z0-9]{64})/$', pretix.presale.views.user.UnlockHashView.as_view(),
name='event.payment.unlock'),