Private
Public Access
1
0

closing payments page for coaches

This commit is contained in:
Sander Roosendaal
2019-02-21 17:51:51 +01:00
parent 7fd8a110eb
commit e217446b31
28 changed files with 213 additions and 113 deletions

View File

@@ -173,7 +173,9 @@ def rower_get_coaches(rower):
def coach_getcoachees(coach):
if coach.mycoachgroup and coach.rowerplan == 'coach':
return Rower.objects.filter(coachinggroups__in=[coach.mycoachgroup]).distinct()
return Rower.objects.filter(
coachinggroups__in=[coach.mycoachgroup]
).distinct().order_by("user__last_name","user__first_name")
else:
return []