8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-05 01:16:27 +00:00

Optimizing facture request

This commit is contained in:
Charlie Jacomme 2018-06-26 18:44:07 +02:00
parent 1a8cb88515
commit c762f49468

View file

@ -860,7 +860,7 @@ def profil(request, users, **_kwargs):
) )
nb_machines = machines.count() nb_machines = machines.count()
machines = re2o_paginator(request, machines, pagination_large_number) 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 = SortTable.sort(
factures, factures,
request.GET.get('col'), request.GET.get('col'),