mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-05 02:14:15 +00:00
Fix highlight color not working on best customer table
This commit is contained in:
1 parent
2138752ce9
commit
2e4c85ce30
1 file changed
+2
-1
+2
-1
@@ -560,7 +560,8 @@ class Counter(models.Model):
|
||||
)
|
||||
.annotate(nickname=F("customer__user__nick_name"))
|
||||
.annotate(promo=F("customer__user__promo"))
|
||||
.values("customer__user", "promo", "name", "nickname")
|
||||
.annotate(user=F("customer__user"))
|
||||
.values("customer__user", "user", "promo", "name", "nickname")
|
||||
.annotate(
|
||||
selling_sum=Sum(
|
||||
F("unit_price") * F("quantity"), output_field=CurrencyField()
|
||||
|
||||
Reference in new issue
Block a user