8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-30 08:32:26 +00:00

Fix #153, pas de solde par solde

This commit is contained in:
Gabriel Detraz 2018-08-16 19:31:56 +02:00 committed by root
parent 164497b02e
commit 9c065b57e3

View file

@ -272,7 +272,7 @@ class RechargeForm(FormRevMixin, Form):
super(RechargeForm, self).__init__(*args, **kwargs) super(RechargeForm, self).__init__(*args, **kwargs)
self.fields['payment'].empty_label = \ self.fields['payment'].empty_label = \
_("Select a payment method") _("Select a payment method")
self.fields['payment'].queryset = Paiement.find_allowed_payments(user) self.fields['payment'].queryset = Paiement.find_allowed_payments(user).exclude(is_balance=True)
def clean(self): def clean(self):
""" """