Private
Public Access
1
0

some stuff

This commit is contained in:
Sander Roosendaal
2019-08-28 21:12:23 +02:00
parent a28afdd99d
commit 83e14c1785
3 changed files with 17 additions and 1 deletions

View File

@@ -136,6 +136,12 @@ class RowerPlanMiddleWare(object):
paymentprocessor='braintree')
r.paidplan = basicplans[0]
r.save()
# remove from Free Coach groups
for group in r.coachinggroups.all():
coach = rower.objects.get(mycoachgroup=group)
if coach.rowerplan == 'freecoach':
r.coachinggroups.remove(group)
# send email
job = myqueue(queue,
handle_sendemail_expired,