Only set to Confirmed if Waiting for payment

This commit is contained in:
Tanner Collin 2022-06-06 06:42:09 +00:00
parent 9bff599d59
commit 4d4e6cdae1

View File

@ -235,6 +235,7 @@ def check_training(data, training_id, amount):
member = training.user.member member = training.user.member
if training.attendance_status == 'Waiting for payment':
training.attendance_status = 'Confirmed' training.attendance_status = 'Confirmed'
training.paid_date = datetime.date.today() training.paid_date = datetime.date.today()
training.save() training.save()