mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-25 08:23:46 +00:00
Ajoute le tri des cotis/ban/whitelist/machines sur la page d'un user
This commit is contained in:
parent
a87cbb7b7e
commit
d1ee75bb17
1 changed files with 24 additions and 0 deletions
|
@ -792,9 +792,33 @@ def profil(request, userid):
|
|||
.prefetch_related('interface_set__ipv4__ip_type__extension')\
|
||||
.prefetch_related('interface_set__type')\
|
||||
.prefetch_related('interface_set__domain__related_domain__extension')
|
||||
machines = SortTable.sort(
|
||||
machines,
|
||||
request.GET.get('col'),
|
||||
request.GET.get('order'),
|
||||
SortTable.MACHINES_INDEX
|
||||
)
|
||||
factures = Facture.objects.filter(user=users)
|
||||
factures = SortTable.sort(
|
||||
factures,
|
||||
request.GET.get('col'),
|
||||
request.GET.get('order'),
|
||||
SortTable.COTISATIONS_INDEX
|
||||
)
|
||||
bans = Ban.objects.filter(user=users)
|
||||
bans = SortTable.sort(
|
||||
bans,
|
||||
request.GET.get('col'),
|
||||
request.GET.get('order'),
|
||||
SortTable.USERS_INDEX_BAN
|
||||
)
|
||||
whitelists = Whitelist.objects.filter(user=users)
|
||||
whitelists = SortTable.sort(
|
||||
whitelists,
|
||||
request.GET.get('col'),
|
||||
request.GET.get('order'),
|
||||
SortTable.USERS_INDEX_WHITE
|
||||
)
|
||||
list_droits = Right.objects.filter(user=users)
|
||||
options, _created = OptionalUser.objects.get_or_create()
|
||||
user_solde = options.user_solde
|
||||
|
|
Loading…
Reference in a new issue