Only set to Confirmed if Waiting for payment
This commit is contained in:
parent
9bff599d59
commit
4d4e6cdae1
|
@ -235,7 +235,8 @@ def check_training(data, training_id, amount):
|
||||||
|
|
||||||
member = training.user.member
|
member = training.user.member
|
||||||
|
|
||||||
training.attendance_status = 'Confirmed'
|
if training.attendance_status == 'Waiting for payment':
|
||||||
|
training.attendance_status = 'Confirmed'
|
||||||
training.paid_date = datetime.date.today()
|
training.paid_date = datetime.date.today()
|
||||||
training.save()
|
training.save()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user