class MyForm(forms.Form): def get_global_errors(self): errors = dict(self.errors) return list(errors.get("__all__", []))