Add icon columns to product overview

This commit is contained in:
Raphael Michel
2017-11-26 14:19:02 +01:00
parent 40818ae853
commit 8d90c9e03a
3 changed files with 27 additions and 1 deletions

View File

@@ -46,6 +46,8 @@ class ItemList(ListView):
def get_queryset(self):
return Item.objects.filter(
event=self.request.event
).annotate(
var_count=Count('variations')
).prefetch_related("category")