Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2018-11-27 08:50:19 +01:00
parent c1ee308b99
commit f17dbadf8a
2 changed files with 26 additions and 9 deletions

View File

@@ -16550,8 +16550,11 @@ def rower_create_trainingplan(request,userid=0):
startdate = form.cleaned_data['startdate']
enddate = form.cleaned_data['enddate']
athletes = form.cleaned_data['rowers']
try:
athletes = form.cleaned_data['rowers']
except KeyError:
athletes = [therower]
p = TrainingPlan(
name=name,
target=target,