some fixes after testing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user