Private
Public Access
1
0

bugfix get_coachees

This commit is contained in:
Sander Roosendaal
2019-02-21 09:18:05 +01:00
parent 8f34de8ff0
commit b0558b6eaa

View File

@@ -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: