Commit ef846415 authored by Hugo LEVY-FALK's avatar Hugo LEVY-FALK

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'):
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