Private
Public Access
1
0

more fixes

This commit is contained in:
Sander Roosendaal
2020-01-15 15:55:41 +01:00
parent 88703bb34e
commit 8683d8eaa4
10 changed files with 29 additions and 44 deletions

View File

@@ -173,12 +173,15 @@ def rower_get_coaches(rower):
def coach_getcoachees(coach):
rowers = []
if coach.mycoachgroup and is_coach(coach.user):
return Rower.objects.filter(
rs = Rower.objects.filter(
coachinggroups__in=[coach.mycoachgroup]
).distinct().order_by("user__last_name","user__first_name")
else:
return []
for r in rs:
rowers.append(r)
return rowers
def coach_remove_athlete(coach,rower):
try: