From 0aa63b8d8eab99255a47baf57941a2f97d6ecd1d Mon Sep 17 00:00:00 2001 From: grisel-davy Date: Sat, 17 Oct 2020 13:51:53 +0200 Subject: [PATCH] Fix test of subscription or connection to display message --- cotisations/payment_methods/comnpay/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cotisations/payment_methods/comnpay/views.py b/cotisations/payment_methods/comnpay/views.py index 5bfa2a82..cddb185a 100644 --- a/cotisations/payment_methods/comnpay/views.py +++ b/cotisations/payment_methods/comnpay/views.py @@ -55,7 +55,7 @@ def accept_payment(request, factureid): ) # In case a cotisation was bought, inform the user, the # cotisation time has been extended too - if any(purchase.type_cotisation for purchase in invoice.vente_set.all()): + if any(purchase.test_membership_or_connection() for purchase in invoice.vente_set.all()): messages.success( request, _(