From 949fc3dd1d9ab4dc1bae75a04964721ae59ebc9e Mon Sep 17 00:00:00 2001 From: nanoy Date: Sun, 16 Dec 2018 09:38:03 +0100 Subject: [PATCH] Fix de l'affichage des rechargements sur le profil Close #14 --- users/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/views.py b/users/views.py index 1d15fe4..436dc57 100644 --- a/users/views.py +++ b/users/views.py @@ -111,7 +111,7 @@ def profile(request, pk): self = request.user == user cotisations = CotisationHistory.objects.filter(user=user) whitelists = WhiteListHistory.objects.filter(user=user) - reloads = Reload.objects.filter(customer=user).order_by('-date') + reloads = Reload.objects.filter(customer=user).order_by('-date')[:5] consumptionsChart = Consumption.objects.filter(customer=user) products = [] quantities = []