diff --git a/scores/templates/scores/tournament.html b/scores/templates/scores/tournament.html index 4b392db..b010018 100644 --- a/scores/templates/scores/tournament.html +++ b/scores/templates/scores/tournament.html @@ -176,7 +176,6 @@ {% endfor %} {% for match in ended_matches %} - {% if match.isMatch %}
@@ -253,7 +252,6 @@ {% endif %}
- {% endif %} {% endfor %}
diff --git a/scores/views.py b/scores/views.py index 0ede5a7..614b977 100644 --- a/scores/views.py +++ b/scores/views.py @@ -56,8 +56,8 @@ def club_name(request, club_name): 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').order_by('id').reverse() + tournaments = Tournament.objects.filter(club=club.id).order_by('id').reverse() + template = loader.get_template('scores/club.html') context = { 'club': club, 'tournaments': tournaments, @@ -326,4 +326,4 @@ class PlayerViewSet(viewsets.ModelViewSet): """ queryset = Player.objects.all().order_by('id') serializer_class = PlayerSerializer - permission_classes = [permissions.IsAuthenticated] \ No newline at end of file + permission_classes = [permissions.IsAuthenticated]