From d6645a8e2858cbcdf0bda2e24065dd5f97876d8e Mon Sep 17 00:00:00 2001 From: har0ke Date: Tue, 20 Aug 2019 19:45:33 +0200 Subject: [PATCH] Show all consumptions, not just consumptions added by different users --- main/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/views.py b/main/views.py index a0394ae..af1f2c4 100644 --- a/main/views.py +++ b/main/views.py @@ -169,7 +169,7 @@ def user_consumptions(request): "labels_json": [str(d) for d in dates_new], "consumptions": consumptions_new, "products": Product.objects.all(), - "detailed_cons": Consumption.objects.filter(user=user).exclude(issued_by=user).order_by("-date") + "detailed_cons": Consumption.objects.filter(user=user).order_by("-date") }, "Consumptions, %s" % request.user.username))