mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 11:23:10 +00:00
[preferences/EditAssoOptionForm] commits c1f55e797
and 78b950c39
removed references to payment. This form was forgotten.
This commit is contained in:
parent
f2ce60dd3d
commit
a8db0306fd
1 changed files with 0 additions and 18 deletions
|
@ -151,24 +151,6 @@ class EditAssoOptionForm(ModelForm):
|
||||||
self.fields['utilisateur_asso'].label = 'Compte utilisé pour\
|
self.fields['utilisateur_asso'].label = 'Compte utilisé pour\
|
||||||
faire les modifications depuis /admin'
|
faire les modifications depuis /admin'
|
||||||
|
|
||||||
def clean(self):
|
|
||||||
cleaned_data = super().clean()
|
|
||||||
payment = cleaned_data.get('payment')
|
|
||||||
|
|
||||||
if payment == 'NONE':
|
|
||||||
return cleaned_data
|
|
||||||
|
|
||||||
if not cleaned_data.get('payment_id', ''):
|
|
||||||
msg = forms.ValidationError("Vous devez spécifier un identifiant \
|
|
||||||
de paiement.")
|
|
||||||
self.add_error('payment_id', msg)
|
|
||||||
if not cleaned_data.get('payment_pass', ''):
|
|
||||||
msg = forms.ValidationError("Vous devez spécifier un mot de passe \
|
|
||||||
de paiement.")
|
|
||||||
self.add_error('payment_pass', msg)
|
|
||||||
|
|
||||||
return cleaned_data
|
|
||||||
|
|
||||||
|
|
||||||
class EditMailMessageOptionForm(ModelForm):
|
class EditMailMessageOptionForm(ModelForm):
|
||||||
"""Formulaire d'edition des messages de bienvenue personnalisés"""
|
"""Formulaire d'edition des messages de bienvenue personnalisés"""
|
||||||
|
|
Loading…
Reference in a new issue