Private
Public Access
1
0

adding fast and slow pace ranges

This commit is contained in:
Sander Roosendaal
2020-05-03 16:51:34 +02:00
parent 0f3d697057
commit 1efe86df92
5 changed files with 35 additions and 9 deletions

View File

@@ -241,6 +241,10 @@ def rower_favoritecharts_view(request,userid=0):
staticchartform = StaticChartRowerForm(request.POST,instance=r)
if staticchartform.is_valid():
r.staticgrids = staticchartform.cleaned_data.get('staticgrids')
r.slowpaceerg = staticchartform.cleaned_data.get('slowpaceerg')
r.fastpaceerg = staticchartform.cleaned_data.get('fastpaceerg')
r.slowpaceotw = staticchartform.cleaned_data.get('slowpaceotw')
r.fastpaceotw = staticchartform.cleaned_data.get('fastpaceotw')
r.save()
if request.method == 'POST' and 'form-TOTAL_FORMS' in request.POST: