|
|
|
|
@ -76,6 +76,16 @@ def match(request, match_id): |
|
|
|
|
} |
|
|
|
|
return HttpResponse(template.render(context, request)) |
|
|
|
|
|
|
|
|
|
def match_tv(request, match_id): |
|
|
|
|
|
|
|
|
|
match = get_object_or_404(Match, pk=match_id) |
|
|
|
|
template = loader.get_template('scores/match.html') |
|
|
|
|
context = { |
|
|
|
|
'match': match, |
|
|
|
|
'tv': True, |
|
|
|
|
} |
|
|
|
|
return HttpResponse(template.render(context, request)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def teams_tournament_name(request, tournament_shortname): |
|
|
|
|
tournament = get_object_or_404(Tournament, shortname__iexact=tournament_shortname.lower()) |
|
|
|
|
|