Private
Public Access
1
0

added inventory from test_permissions

This commit is contained in:
Sander Roosendaal
2020-01-15 10:17:46 +01:00
parent 7aa03b71ed
commit a6746030e9
7 changed files with 170 additions and 57 deletions

View File

@@ -169,15 +169,7 @@ def rower_get_managers(rower):
return managers
def rower_get_coaches(rower):
coaches = []
for group in rower.coachinggroups.all():
try:
coach = Rower.objects.get(mycoachgroup=group)
coaches.append(coach)
except Rower.DoesNotExist:
pass
return coaches
return rower.get_coaches()
def coach_getcoachees(coach):