Private
Public Access
1
0

added rower instance database call when saving fav chart

This commit is contained in:
Sander Roosendaal
2017-04-17 09:11:18 +02:00
parent bddda6188a
commit 92311d0687

View File

@@ -4201,6 +4201,7 @@ def workout_flexchart3_view(request,*args,**kwargs):
if request.method == 'POST' and 'savefavorite' in request.POST:
workstrokesonly = request.POST['workstrokesonlysave']
reststrokes = not workstrokesonly
r = Rower.objects.get(user=request.user)
f = FavoriteChart(user=r,xparam=xparam,
yparam1=yparam1,yparam2=yparam2,
plottype=plottype,workouttype=workouttype,