diff --git a/auctions/models.py b/auctions/models.py index 131f46d..39b0266 100755 --- a/auctions/models.py +++ b/auctions/models.py @@ -1090,6 +1090,10 @@ def total_unsold_lots(self): def total_lots(self): return self.lots_qs.exclude(banned=True).count() + @property + def number_of_lots_with_scanned_qr(self): + return self.lots_qs.filter(pageview__source__icontains="qr", auction__pk=self.pk).distinct().count() + @property def labels_qs(self): lots = self.lots_qs.exclude(banned=True) diff --git a/auctions/templates/auction_stats.html b/auctions/templates/auction_stats.html index 9964afe..1deeda0 100755 --- a/auctions/templates/auction_stats.html +++ b/auctions/templates/auction_stats.html @@ -232,6 +232,10 @@