diff --git a/hypha/apply/funds/admin_forms.py b/hypha/apply/funds/admin_forms.py index 108755d55d..9610c4ba52 100644 --- a/hypha/apply/funds/admin_forms.py +++ b/hypha/apply/funds/admin_forms.py @@ -18,7 +18,6 @@ def clean(self): review_forms = self.formsets["review_forms"] external_review_forms = self.formsets["external_review_forms"] determination_forms = self.formsets["determination_forms"] - paf_forms = self.formsets["approval_forms"] number_of_stages = len(workflow.stages) self.validate_application_forms(workflow, application_forms) @@ -33,7 +32,10 @@ def clean(self): self.validate_stages_equal_forms( workflow, determination_forms, form_type="Determination form" ) - self.validate_paf_form(paf_forms) + + if settings.PROJECTS_ENABLED: + paf_forms = self.formsets["approval_forms"] + self.validate_paf_form(paf_forms) return cleaned_data