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