Skip to content
New issue

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

render_form missing name attr #172

Open
FingerLiu opened this issue Nov 29, 2017 · 1 comment
Open

render_form missing name attr #172

FingerLiu opened this issue Nov 29, 2017 · 1 comment

Comments

@FingerLiu
Copy link

html generated by render_form is <input class="form-control" type="text">
which there is no name attr. This lead to fail POST form, because there is no field data detected when server received data.
Is this on purpose or bug?
If it is a bug, happy to PR .

@cjauvin
Copy link

cjauvin commented Mar 21, 2018

You seem to be absolutely right, and I just lost a few hours banging my head on this, before finding your issue.. For now the only solution I could come up with is to use wtf.quick_form instead of render_form:

https://github.com/mbr/flask-bootstrap/blob/master/sample_app/templates/signup.html#L14

for the moment what I "lose" by doing that is not clear to me at all though. Any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants