Keine Ahnung / not known

This commit is contained in:
2018-06-22 15:03:25 +02:00
parent 91f210883f
commit 2fa6dd0709
3 changed files with 29 additions and 21 deletions

View File

@@ -151,7 +151,8 @@ def adminpage(request, pos='default', template_name='adminpage.html'):
debug = []
lss = Match.objects.values('leagueShortcut').distinct(). \
values_list('leagueShortcut', flat=True)
leagues = Competition.objects.values('leagueShortcut', 'leagueName').filter(leagueShortcut__in=lss)
leagues = Competition.objects.values('leagueShortcut', 'leagueName').\
filter(leagueShortcut__in=lss)
ol = OpenLiga()
@@ -164,6 +165,9 @@ def adminpage(request, pos='default', template_name='adminpage.html'):
'leagueName' : l["leagueName"],
'leagueSaison' : l["leagueSaison"]
})
form_leagues = LeagueImportForm()
form_leagues.fields["leagues"].choices = avail_leagues
return render(request, template_name, {
'debug': debug,