added rower instance database call when saving fav chart
This commit is contained in:
@@ -4201,6 +4201,7 @@ def workout_flexchart3_view(request,*args,**kwargs):
|
|||||||
if request.method == 'POST' and 'savefavorite' in request.POST:
|
if request.method == 'POST' and 'savefavorite' in request.POST:
|
||||||
workstrokesonly = request.POST['workstrokesonlysave']
|
workstrokesonly = request.POST['workstrokesonlysave']
|
||||||
reststrokes = not workstrokesonly
|
reststrokes = not workstrokesonly
|
||||||
|
r = Rower.objects.get(user=request.user)
|
||||||
f = FavoriteChart(user=r,xparam=xparam,
|
f = FavoriteChart(user=r,xparam=xparam,
|
||||||
yparam1=yparam1,yparam2=yparam2,
|
yparam1=yparam1,yparam2=yparam2,
|
||||||
plottype=plottype,workouttype=workouttype,
|
plottype=plottype,workouttype=workouttype,
|
||||||
|
|||||||
Reference in New Issue
Block a user