From: Yoan Le Clanche Date: Mon, 24 Aug 2020 14:21:52 +0000 (+0200) Subject: Make portrait field mandatory X-Git-Tag: 1.4.3~48 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=99cb988849c06096e2625251c9bc50411b1dce5e;p=teleforma.git Make portrait field mandatory --- diff --git a/teleforma/forms.py b/teleforma/forms.py index ff4011b7..0cf95256 100644 --- a/teleforma/forms.py +++ b/teleforma/forms.py @@ -72,7 +72,7 @@ class UserForm(ModelForm): telephone = CharField(label=_('Telephone'), max_length=255) birthday = DateField(label=_('Birthday'), help_text="Au format jj/mm/aaaa") # student - portrait = ImageField(widget=FileInput(attrs={'accept': "image/*;capture=camera"}), required=False, + portrait = ImageField(widget=FileInput(attrs={'accept': "image/*;capture=camera"}), required=True, help_text="Veuillez utiliser une photo au format d'identité.") level = ChoiceField(label=_('Studying level'), choices=LEVEL_CHOICES) iej = ModelChoiceField(label='IEJ',