From: Guillaume Pellerin Date: Wed, 17 Mar 2021 15:58:12 +0000 (+0100) Subject: bugfix X-Git-Tag: 1.4.3~8 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b21fc227b45611d46bec897de8091d2677919515;p=teleforma.git bugfix --- diff --git a/teleforma/views/crfpa.py b/teleforma/views/crfpa.py index d1614925..66c6b4d0 100644 --- a/teleforma/views/crfpa.py +++ b/teleforma/views/crfpa.py @@ -493,12 +493,12 @@ class UserXLSBook(object): amount = row[i] payment_type = row[i+1] payments = Payment.objects.filter(student=student, month=month[0]) - student.restricted = False + student.restricted = True if not payments and amount: payment = Payment(student=student, value=float(amount), month=month[0], type=payment_type, online_paid=True) print(last_name.encode('utf8') + ' : add payment') payment.save() - student.restricted = True + student.restricted = False i += 2 student.save()