Private
Public Access
1
0

some fixes after testing

This commit is contained in:
Sander Roosendaal
2017-05-11 11:58:44 +02:00
parent 514e54e814
commit 4a10584733
4 changed files with 103 additions and 97 deletions

View File

@@ -327,9 +327,9 @@ class BaseFavoriteFormSet(BaseFormSet):
def checkworkoutuser(user,workout):
try:
r = Rower.objects.get(user=user)
return (workout.user == r)
return workout.user == r
except Rower.DoesNotExist:
return(False)
return False
# Workout