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

Explicitly check if db_session is None in converter #17

Merged
merged 5 commits into from
Feb 24, 2020

Conversation

mx-moth
Copy link
Contributor

@mx-moth mx-moth commented May 23, 2019

This allows the use of a Werkzeug LocalProxy for handling sessions tied to requests, for example. An unbound LocalProxy is falsey, and the session LocalProxy is unbound during application start up, but the session will exist by the time a form is actually built.

I also fixed some errors in the tests while I was at it.

Tim Heap added 3 commits May 23, 2019 17:35
This allows the use of a Werkzeug LocalProxy for handling sessions tied
to requests, for example. An unbound LocalProxy is falsey, and the
session LocalProxy is unbound during application start up, but the
session will exist by the time a form is actually built.
@mx-moth
Copy link
Contributor Author

mx-moth commented May 24, 2019

The Travis build is fixed now. It is using very out-of-date versions of packages!

@mlenzen mlenzen merged commit 4986943 into wtforms:master Feb 24, 2020
mlenzen added a commit that referenced this pull request Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants