8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-25 22:22:26 +00:00

Fix test of subscription or connection to display message

This commit is contained in:
grisel-davy 2020-10-17 13:51:53 +02:00 committed by Gabriel Detraz
parent eaf3673587
commit 0aa63b8d8e

View file

@ -55,7 +55,7 @@ def accept_payment(request, factureid):
) )
# In case a cotisation was bought, inform the user, the # In case a cotisation was bought, inform the user, the
# cotisation time has been extended too # 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( messages.success(
request, request,
_( _(