diff --git a/users/views.py b/users/views.py index fcb44f65..c18fa643 100644 --- a/users/views.py +++ b/users/views.py @@ -860,7 +860,7 @@ def profil(request, users, **_kwargs): ) nb_machines = machines.count() machines = re2o_paginator(request, machines, pagination_large_number) - factures = Facture.objects.filter(user=users) + factures = Facture.objects.filter(user=users).select_related('paiement').select_related('user') factures = SortTable.sort( factures, request.GET.get('col'),