From 8338790eaefd297b3dd2116b9af5b7f29229e4d0 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Thu, 8 Oct 2020 21:15:30 +0200 Subject: [PATCH] =?UTF-8?q?Supprime=20l'avatar=20=C3=A0=20la=20cr=C3=A9ati?= =?UTF-8?q?on=20(inutile/bugg=C3=A9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- users/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/forms.py b/users/forms.py index e4fe138f..8a010c3e 100644 --- a/users/forms.py +++ b/users/forms.py @@ -330,7 +330,8 @@ class AdherentForm(FormRevMixin, FieldPermissionFormMixin, ModelForm): self.fields["email"].label = _("Email address") self.fields["school"].label = _("School") self.fields["comment"].label = _("Comment") - self.fields["profile_image"].label = _("Profile Image") + if "profile_image" in self.fields: + self.fields["profile_image"].label = _("Profile Image") if "room" in self.fields: self.fields["room"].label = _("Room") self.fields["room"].empty_label = _("No room") @@ -470,7 +471,6 @@ class AdherentCreationForm(AdherentForm): "school", "comment", "telephone", - "profile_image", "room", "state", ]