added inventory from test_permissions
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user