From 51beb47191edc1a76a1eeee41a1b58a1ec7c8e3e Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Tue, 26 Apr 2022 14:23:10 +0200 Subject: [PATCH] Fix scholarship files Signed-off-by: Yohann D'ANELLO --- apps/registration/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/registration/forms.py b/apps/registration/forms.py index 411dce8..2ff428a 100644 --- a/apps/registration/forms.py +++ b/apps/registration/forms.py @@ -221,7 +221,7 @@ class PaymentForm(forms.ModelForm): cleaned_data = super().clean() if "type" in cleaned_data and cleaned_data["type"] == "scholarship" \ - and "scholarship" not in cleaned_data and not self.instance.scholarship_file: + and "scholarship_file" not in cleaned_data and not self.instance.scholarship_file: self.add_error("scholarship_file", _("You must upload your scholarship attestation.")) return cleaned_data