Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit de5b6c90 authored by klafyvel's avatar klafyvel

Merge branch 'fix_153' into 'dev'

Fix #153, pas de solde par solde

See merge request federez/re2o!258
parents 164497b0 9c065b57
......@@ -272,7 +272,7 @@ class RechargeForm(FormRevMixin, Form):
super(RechargeForm, self).__init__(*args, **kwargs)
self.fields['payment'].empty_label = \
_("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):
"""
......
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