Skip to content

Commit

Permalink
allow passing kwargs to form process
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshson committed Jan 18, 2024
1 parent 645fe4b commit 7e984bf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions form_designer/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def form(self): # pragma: no cover
warnings.warn("Use form_class instead", DeprecationWarning, stacklevel=2)
return self.form_class()

def process(self, form, request):
def process(self, form, request, **kwargs):
ret = {}
cfg = dict(self.CONFIG_OPTIONS)

Expand All @@ -163,7 +163,11 @@ def process(self, form, request):
continue

ret[key] = process(
model_instance=self, form_instance=form, request=request, config=config
model_instance=self,
form_instance=form,
request=request,
config=config,
**kwargs,
)

return ret
Expand Down

0 comments on commit 7e984bf

Please sign in to comment.