Skip to content

Commit

Permalink
grid.form_maker
Browse files Browse the repository at this point in the history
  • Loading branch information
mdipierro committed Jun 15, 2024
1 parent 4b80739 commit 06cfaec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py4web/utils/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def __init__(
groupby=None,
# deprecated
fields=None,
form=Form,
form_maker=Form,
):
"""
Grid is a searchable/sortable/pageable grid
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 06cfaec

Please sign in to comment.