@ -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,
_(