It was being used.

This commit is contained in:
Víðir Valberg Guðmundsson 2021-07-29 15:13:23 +02:00
parent e96b8a9e44
commit 67ac9ee820

View file

@ -6,7 +6,7 @@ import logging
import qrcode
from django.conf import settings
from django.db import models
from django.db.models import Sum, Count, F
from django.db.models import Count, F, Sum
from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _
@ -28,6 +28,7 @@ class TicketTypeManager(models.Manager):
return (
self.filter(shopticket__isnull=False)
.annotate(shopticket_count=Count("shopticket"))
.annotate(total_units_sold=total_units_sold)
.annotate(total_income=total_income)
.annotate(total_cost=total_cost)