diff --git a/counter/models.py b/counter/models.py index c6389349..ad6c0306 100644 --- a/counter/models.py +++ b/counter/models.py @@ -557,7 +557,7 @@ class Counter(models.Model): ) .annotate(nickname=F("customer__user__nick_name")) .annotate(promo=F("customer__user__promo")) - .values("customer__user", "name", "nickname") + .values("customer__user", "promo", "name", "nickname") .annotate( selling_sum=Sum( F("unit_price") * F("quantity"), output_field=CurrencyField()