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

Minor improvements to the Quickstart document #104

Merged
merged 2 commits into from Jan 19, 2014
Merged

Conversation

mlncn
Copy link
Contributor

@mlncn mlncn commented Dec 17, 2013

Most important is the change in the illustrative example for the route receiving the form submission from ('GET', 'POST') to ['GET', 'POST']— at least in Flask 0.10.1 the square bracket list notation is required.

@lepture
Copy link
Contributor

lepture commented Dec 18, 2013

at least in Flask 0.10.1 the square bracket list notation is required.

Are you sure? It actually supports both list and tuple. Coz tuple is faster, I put tuple here.

@mlncn
Copy link
Contributor Author

mlncn commented Dec 19, 2013

Ah, you are right. I was sure i had tried it with ('GET', 'POST') but that does work for me— what i can reproduce is restricting it to just POST as ('POST') which of course does not work, gives 'Method not allowed'.

@lepture
Copy link
Contributor

lepture commented Dec 19, 2013

@mlncn ('POST') is not a tuple, ('POST',) is a tuple. Most people can make such a mistake.

@lepture
Copy link
Contributor

lepture commented Jan 19, 2014

@mlncn could you send me another clean patch?

If I cherry pick some of the commit, it will be fast forward. And I don't want to merge too many useless commits.

@mlncn
Copy link
Contributor Author

mlncn commented Jan 19, 2014

Thank you! Cleaned up this patch-1 branch, https://github.com/mlncn/flask-wtf/tree/patch-1 — merge away!

lepture added a commit that referenced this pull request Jan 19, 2014
Minor improvements to the Quickstart document
@lepture lepture merged commit 32ab9b4 into wtforms:master Jan 19, 2014
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants