Staffjoy / suite

Staffjoy V1, aka "Suite" - a scheduling application for hundreds of workers
https://www.staffjoy.com
Other
842 stars 231 forks source link

User is not bound to session on password reset confirm #44

Closed mikepaszkiewicz closed 7 years ago

mikepaszkiewicz commented 7 years ago

DetachedInstanceError: Instance <User at 0x7f6de5b9f990> is not bound to a Session; attribute refresh operation cannot proceed

Have a hunch this is related to SQL Alchemy...

mikepaszkiewicz commented 7 years ago

in config.py, fix by setting SQLALCHEMY_COMMIT_ON_TEARDOWN = False