mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Re-structure some querying on cart and order pages to reduce load
This commit is contained in:
@@ -245,6 +245,8 @@ class OrderDetails(EventViewMixin, OrderDetailMixin, CartMixin, TicketPageMixin,
|
||||
).exclude(
|
||||
provider__in=('offsetting', 'reseller', 'boxoffice', 'manual')
|
||||
)
|
||||
ctx['user_change_allowed'] = self.order.user_change_allowed
|
||||
ctx['user_cancel_allowed'] = self.order.user_cancel_allowed
|
||||
for r in ctx['refunds']:
|
||||
if r.provider == 'giftcard':
|
||||
gc = GiftCard.objects.get(pk=r.info_data.get('gift_card'))
|
||||
|
||||
Reference in New Issue
Block a user