mirror of https://gitlab.federez.net/re2o/re2o
8 changed files with 32 additions and 32 deletions
@ -0,0 +1,7 @@ |
|||
from django.conf.urls import include, url |
|||
from . import comnpay, cheque |
|||
|
|||
urlpatterns = [ |
|||
url(r'^comnpay/', include(comnpay.urls, namespace='comnpay')), |
|||
url(r'^cheque/', include(cheque.urls, namespace='cheque')), |
|||
] |
|||
@ -0,0 +1,9 @@ |
|||
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 |
|||
Loading…
Reference in new issue