fix club order

main
Razmig Sarkissian 2 years ago
parent a63abc1acc
commit 17893bf362
  1. 4
      scores/views.py

@ -45,7 +45,7 @@ def club(request, club_id):
def club_name(request, club_name): def club_name(request, club_name):
club = get_object_or_404(Club, name__iexact=club_name.lower()) club = get_object_or_404(Club, name__iexact=club_name.lower())
tournaments = Tournament.objects.filter(club=club.id) tournaments = Tournament.objects.filter(club=club.id).order_by('id').reverse()
template = loader.get_template('scores/club.html') template = loader.get_template('scores/club.html')
context = { context = {
'club': club, 'club': club,
@ -57,7 +57,7 @@ def tv_club_name(request, club_name):
club = get_object_or_404(Club, name__iexact=club_name.lower()) club = get_object_or_404(Club, name__iexact=club_name.lower())
tournaments = Tournament.objects.filter(club=club.id) tournaments = Tournament.objects.filter(club=club.id)
template = loader.get_template('scores/club.html') template = loader.get_template('scores/club.html').order_by('id').reverse()
context = { context = {
'club': club, 'club': club,
'tournaments': tournaments, 'tournaments': tournaments,

Loading…
Cancel
Save