From c0ea4cb6fdf9bd4402301553363034d4ef1cbd1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Blas=20Isaias=20Fern=C3=A1ndez?= Date: Mon, 4 Mar 2024 10:46:02 -0300 Subject: [PATCH] fix: avoid 'ModalEditFormsetLayout' object has no attribute 'fields' --- crispy_formset_modal/layout.py | 1 + 1 file changed, 1 insertion(+) diff --git a/crispy_formset_modal/layout.py b/crispy_formset_modal/layout.py index 647727a..b732eb3 100644 --- a/crispy_formset_modal/layout.py +++ b/crispy_formset_modal/layout.py @@ -46,6 +46,7 @@ def __init__( self.sum_columns = sum_columns self.modal_size = modal_size self.modal_placement = modal_placement + self.fields = [] def get_html_name(self, empty_form, field): return empty_form[field].html_name.split("__prefix__")[1][1:]