fix club order

prod
Razmig Sarkissian 2 years ago
parent 9c9ee2c196
commit b21827e462
  1. 4
      scores/views.py

@ -45,7 +45,7 @@ def club(request, club_id):
def club_name(request, club_name):
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')
context = {
'club': club,
@ -57,7 +57,7 @@ def tv_club_name(request, club_name):
club = get_object_or_404(Club, name__iexact=club_name.lower())
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 = {
'club': club,
'tournaments': tournaments,

Loading…
Cancel
Save