mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Connect giftcards with customer accounts (#5126)
Connect giftcards with customer accounts, show giftcards during checkout and in account , show giftcard list in backend customer view
This commit is contained in:
@@ -3085,6 +3085,8 @@ class CustomerDetailView(OrganizerDetailViewMixin, OrganizerPermissionRequiredMi
|
||||
.annotate(spending=Sum("total"))
|
||||
)
|
||||
|
||||
ctx["gift_cards"] = self.customer.customer_gift_cards.all()
|
||||
|
||||
return ctx
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user