def get_completed_exercises(user):
 exercises_by_user = ExerciseLog.objects.filter(user=user, complete=True).values_list('exercise_id', flat=True)
 return exercises_by_user

def get_completed_exercises ( user ) : exercises_by_user = ExerciseLog . objects . filter ( user = user , complete = True ) . values_list ( 'exercise_id' , flat = True ) return exercises_by_user
return a list of all completed exercises by user .