8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-04 17:06:27 +00:00

Supprime l'avatar à la création (inutile/buggé)

This commit is contained in:
Gabriel Detraz 2020-10-08 21:15:30 +02:00
parent 53dd1920d7
commit 4003856b47

View file

@ -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",
]