athlete edit permissions in place
This commit is contained in:
@@ -167,6 +167,11 @@ def update_subscription(rower,data,method='up'):
|
||||
l = rower.user.last_name,
|
||||
)
|
||||
|
||||
if rower.paidplan != 'coach':
|
||||
coachees = Rower.objects.filter(coach__in=[rower]).distinct()
|
||||
for coachee in coachees:
|
||||
coachee.coaches.remove(rower)
|
||||
|
||||
if method == 'up':
|
||||
transactions = result.subscription.transactions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user