Keine Ahnung / not known
This commit is contained in:
@@ -69,7 +69,9 @@ class UserProfileForm(forms.ModelForm):
|
||||
model = UserProfile
|
||||
fields = ['avatar']
|
||||
|
||||
"""
|
||||
class LeagueImportForm(forms.Form):
|
||||
leagues =
|
||||
"""
|
||||
leagues = forms.ChoiceField(
|
||||
widget=forms.RadioSelect()
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user