mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
Pass arguments to form parts as it is mean to
This commit is contained in:
parent
288e4bb6ca
commit
7ebeb44b22
@ -140,7 +140,7 @@ class FormPlugin():
|
|||||||
"""If the user has tried to fill in the form, process it, otherwise, just display a default form."""
|
"""If the user has tried to fill in the form, process it, otherwise, just display a default form."""
|
||||||
if kwargs:
|
if kwargs:
|
||||||
kwargs['message'] = self.process_form(**kwargs)
|
kwargs['message'] = self.process_form(**kwargs)
|
||||||
parts = get_parts(self)
|
parts = get_parts(self, **kwargs)
|
||||||
return self.fill_template(**parts)
|
return self.fill_template(**parts)
|
||||||
|
|
||||||
def process_form(self, **kwargs):
|
def process_form(self, **kwargs):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user