bugfix get_coachees
This commit is contained in:
@@ -167,7 +167,10 @@ def rower_get_coaches(rower):
|
||||
|
||||
|
||||
def coach_getcoachees(coach):
|
||||
return Rower.objects.filter(coachinggroups__in=[coach.mycoachgroup]).distinct()
|
||||
if coach.mycoachgroup and coach.rowerplan == 'coach':
|
||||
return Rower.objects.filter(coachinggroups__in=[coach.mycoachgroup]).distinct()
|
||||
else:
|
||||
return []
|
||||
|
||||
def coach_remove_athlete(coach,rower):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user