Private
Public Access
1
0

completing plan implementation form

This commit is contained in:
Sander Roosendaal
2021-03-22 19:59:32 +01:00
parent c07b06328e
commit f807396b0a
3 changed files with 35 additions and 19 deletions

View File

@@ -2567,6 +2567,13 @@ def rower_view_instantplan(request,id='',userid=0):
create_sessions_from_json(plansteps,athletes,startdate,r.user)
url = reverse('plannedsessions_view')
timeperiod = startdate.strftime('%Y-%m-%d')+'/'+enddate.strftime('%Y-%m-%d')
url = url+'?when='+timeperiod
return HttpResponseRedirect(url)
else:
form = TrainingPlanForm(targets=targets,initial={'status':True,'rowers':[r]},
user=request.user)