8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-09 19:36:27 +00:00

Ordonancement des tickets par date

This commit is contained in:
Grizzly 2019-07-11 08:00:49 +00:00 committed by Gabriel Detraz
parent a561f09458
commit 609904c279
2 changed files with 2 additions and 2 deletions

View file

@ -38,6 +38,6 @@ def aff_ticket(request,ticketid):
def aff_tickets(request): def aff_tickets(request):
""" Vue d'affichage de tout les tickets """ """ Vue d'affichage de tout les tickets """
tickets = Ticket.objects.all() tickets = Ticket.objects.all().order_by('date')
return render(request,'tickets/index.html', return render(request,'tickets/index.html',
{'tickets_list':tickets}) {'tickets_list':tickets})

View file

@ -978,7 +978,7 @@ def profil(request, users, **_kwargs):
request.GET.get('order'), request.GET.get('order'),
SortTable.MACHINES_INDEX SortTable.MACHINES_INDEX
) )
tickets = Ticket.objects.filter(user=users).all() tickets = Ticket.objects.filter(user=users).all().order_by('date')
nb_tickets = tickets.count() nb_tickets = tickets.count()
pagination_large_number = GeneralOption.get_cached_value( pagination_large_number = GeneralOption.get_cached_value(
'pagination_large_number' 'pagination_large_number'