Private
Public Access
1
0

cannot pickle list of teams ->

This commit is contained in:
Sander Roosendaal
2017-02-14 13:11:43 +01:00
parent d63f7336c5
commit 991eebf862
3 changed files with 23 additions and 28 deletions

View File

@@ -2998,10 +2998,12 @@ def workout_flexchart3_view(request,*args,**kwargs):
workouttype = 'ote'
if row.workouttype == 'water':
workouttype = 'otw'
favorites = FavoriteChart.objects.filter(user=r,
workouttype__in=[workouttype,'both']).order_by("id")
try:
favorites = FavoriteChart.objects.filter(user=r,
workouttype__in=[workouttype,'both']).order_by("id")
maxfav = len(favorites)-1
except:
pass
# check if favoritenr is not out of range