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