Replies: 2 comments 1 reply
-
Please provide a minimal, reproducible example, with the version of the dependencies being used. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Here is snippet with only relevant portions mentioned. I am trying to use WTForms with FastAPI to get form validation for HTML based web app. We do not use json as mime type for rest instead use HTML only.
for last line in code spinnet where I instantiate GameForm I get error. I have tried passing request, request.form(), request.body() etc.
how do I pass fastapi Request to wftforms Form object. I am getting error: TypeError: formdata should be a multidict-type wrapper that supports the 'getlist' method.
snippet:
Regards,
Miten.
Beta Was this translation helpful? Give feedback.
All reactions