mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Order voucher tags in the voucher tag view
This commit is contained in:
@@ -95,7 +95,7 @@ class VoucherTags(EventPermissionRequiredMixin, TemplateView):
|
||||
def get_context_data(self, **kwargs):
|
||||
ctx = super().get_context_data(**kwargs)
|
||||
|
||||
tags = self.request.event.vouchers.order_by().filter(tag__isnull=False).values('tag').annotate(
|
||||
tags = self.request.event.vouchers.order_by('tag').filter(tag__isnull=False).values('tag').annotate(
|
||||
total=Count('id'),
|
||||
redeemed=Sum('redeemed')
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user