From dd79b866013865900b3cdf06b07679c2bd2e1f3c Mon Sep 17 00:00:00 2001 From: grisel-davy Date: Sat, 18 Aug 2018 13:10:36 +0200 Subject: [PATCH] Clarification mineur du AdherentForm --- users/forms.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/users/forms.py b/users/forms.py index f1b50652..fb70ec8b 100644 --- a/users/forms.py +++ b/users/forms.py @@ -316,6 +316,8 @@ class AdherentForm(FormRevMixin, FieldPermissionFormMixin, ModelForm): self.fields['room'].label = _("Room") self.fields['room'].empty_label = _("No room") self.fields['school'].empty_label = _("Select a school") + self.fields['shell'].empty_label = _("Shell par défaut") + self.fields['gpg_fingerprint'].widget.attrs['placeholder'] = _("Laissez vide si vous ne disposez pas de clef GPG") def clean_email(self): if not OptionalUser.objects.first().local_email_domain in self.cleaned_data.get('email'): @@ -334,9 +336,9 @@ class AdherentForm(FormRevMixin, FieldPermissionFormMixin, ModelForm): 'email', 'school', 'comment', + 'telephone', 'room', 'shell', - 'telephone', 'gpg_fingerprint' ]