forked from CGM_Public/pretix_original
Statistics: Fixed product graph
This commit is contained in:
@@ -58,14 +58,14 @@ class IndexView(EventPermissionRequiredMixin, TemplateView):
|
|||||||
p['item']: p['cnt']
|
p['item']: p['cnt']
|
||||||
for p in (OrderPosition.objects.current
|
for p in (OrderPosition.objects.current
|
||||||
.filter(order__event=self.request.event)
|
.filter(order__event=self.request.event)
|
||||||
.values('item', 'variation')
|
.values('item')
|
||||||
.annotate(cnt=Count('id')))
|
.annotate(cnt=Count('id')))
|
||||||
}
|
}
|
||||||
num_paid = {
|
num_paid = {
|
||||||
p['item']: p['cnt']
|
p['item']: p['cnt']
|
||||||
for p in (OrderPosition.objects.current
|
for p in (OrderPosition.objects.current
|
||||||
.filter(order__event=self.request.event, order__status=Order.STATUS_PAID)
|
.filter(order__event=self.request.event, order__status=Order.STATUS_PAID)
|
||||||
.values('item', 'variation')
|
.values('item')
|
||||||
.annotate(cnt=Count('id')))
|
.annotate(cnt=Count('id')))
|
||||||
}
|
}
|
||||||
item_names = {
|
item_names = {
|
||||||
|
|||||||
Reference in New Issue
Block a user