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:
parent
1a8cb88515
commit
c762f49468
1 changed files with 1 additions and 1 deletions
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue