Commit ef846415 authored by Levy--Falk Hugo's avatar Levy--Falk Hugo

Il est vrai qu'il est bien de pouvoir créer des paiement sans méthode de paiement...

parent 17da4a52
......@@ -104,6 +104,8 @@ class PaymentMethodForm(forms.Form):
Tries to call `payment_method.alter_payment` if it exists.
"""
commit = kwargs.pop('commit', True)
if not hasattr(self, 'payment_method'):
return None
self.payment_method.payment = payment
if hasattr(self.payment_method, 'alter_payment'):
self.payment_method.alter_payment(payment)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment