We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eg, a form like:
<form method="post">....
would get parsed out as a form with "/" as action url but instead the current url should be the action url. as per the html5 spec at https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#form-submission-algorithm
If action is the empty string, let action be the URL of the form document.
The text was updated successfully, but these errors were encountered:
I'm having the same problem. So far, I am changing the form action manually in the tests, like
response = test_app.get("/base_url") form = response.form form.action = "/base_url" form_response = form.submit()
which also works if the URL is dynamic (e.g., it depends on an object's id):
form.action = f"/base_url/{object.id}" form_response = form.submit()
It is annoying, but at least it works without having to change the template.
Sorry, something went wrong.
No branches or pull requests
Eg, a form like:
would get parsed out as a form with "/" as action url but instead the current url should be the action url. as per the html5 spec at https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#form-submission-algorithm
The text was updated successfully, but these errors were encountered: