mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-20 10:23:12 +00:00
10 lines
312 B
Python
10 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
|