mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 19:33:11 +00:00
9 lines
312 B
Python
9 lines
312 B
Python
def find_payment_method(payment):
|
|
from cotisations.payment_methods import PAYMENT_METHODS
|
|
for method in PAYMENT_METHODS:
|
|
try:
|
|
o = method.PaymentMethod.objects.get(payment=payment)
|
|
return o
|
|
except method.PaymentMethod.DoesNotExist:
|
|
pass
|
|
return None
|