Closed akhileshThapliyal closed 3 months ago
I did this test on my own code base:
def test(form, **_):
asd()
new = Form.create(
auto__model=Customer,
fields__name__include=False,
actions__save_next=Action.submit(
display_name='foo',
post_handler=test,
)
)
and when I click the "foo" button I get the crash due to asd
not existing like I expect. Is there maybe some extra configuration in the Style
you aren't showing?
I am trying to set the post_handlers for my action buttons, but it doesn't work. For some reason it doesn't override the post handler nor can I assign any post handlers to my custom button on the forms. Please advise. thank you.