diff --git a/proposals/utils/stepper.py b/proposals/utils/stepper.py index 44e5fd33..0e50b848 100644 --- a/proposals/utils/stepper.py +++ b/proposals/utils/stepper.py @@ -262,7 +262,10 @@ def get_form_errors(self, exclude_submit=False): # When using this method on the submit page, we # use the form's own validation, otherwise it gets # validated twice - if exclude_submit and item.form_class == ProposalSubmitForm: + if ( + exclude_submit + and getattr(item, "form_class", None) is ProposalSubmitForm + ): continue troublesome_pages.append( {