Show all consumptions, not just consumptions added by different users
This commit is contained in:
parent
5896094501
commit
d6645a8e28
@ -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))
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user