From e0e1d8a1cfc7d7c3028a1e6ae05660e86d904094 Mon Sep 17 00:00:00 2001 From: powderflask Date: Mon, 9 Oct 2023 17:16:51 -0700 Subject: [PATCH] black --- fmft/formset_tables.py | 1 + fmft/views.py | 1 + 2 files changed, 2 insertions(+) diff --git a/fmft/formset_tables.py b/fmft/formset_tables.py index a677f72..2cd8a04 100644 --- a/fmft/formset_tables.py +++ b/fmft/formset_tables.py @@ -35,6 +35,7 @@ class BaseModelFormSet(django.forms.models.BaseModelFormSet): """Extends BaseModelFormSet to add non-form error report suited to formsets displayed in a table""" + def all_non_field_errors(self): error_list = self.non_form_errors().copy() for form in self: diff --git a/fmft/views.py b/fmft/views.py index 8104499..edff83c 100644 --- a/fmft/views.py +++ b/fmft/views.py @@ -83,6 +83,7 @@ class BaseModelFormSetView( ): """A Base class that emulates formsets.ModelFormSetView, but without its request handlers""" + formset_class = formset_tables.BaseModelFormSet pass