mirror of https://gitlab.federez.net/re2o/re2o
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
312 B
9 lines
312 B
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
|
|
|