From 06cfaec117664666b856c7df6d7ae212ee8c2747 Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Fri, 14 Jun 2024 22:19:42 -0700 Subject: [PATCH] grid.form_maker --- py4web/utils/grid.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py4web/utils/grid.py b/py4web/utils/grid.py index ce3afe76..76215052 100644 --- a/py4web/utils/grid.py +++ b/py4web/utils/grid.py @@ -485,7 +485,7 @@ def __init__( groupby=None, # deprecated fields=None, - form=Form, + form_maker=Form, ): """ Grid is a searchable/sortable/pageable grid @@ -531,7 +531,7 @@ def __init__( self.path = path self.db = query._db self.T = T - self.Form = form + self.form_maker = form_maker self.param = Param( query=query, columns=columns or fields, @@ -740,7 +740,7 @@ def process(self): readonly = self.action == "details" attrs = self.attributes_plugin.form(url=request.url.split(":", 1)[1]) - self.form = self.Form( + self.form = self.form_maker( table, record=record, readonly=readonly,