-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
A convenient way to get a session from a member method of Model #86
Comments
You could use |
In general, I'm not in favor of having a |
object_session only works for instance of Model. and the instance has already been attached to a session. |
True, my bad. Providing a |
Yeah, |
I usually separate the modal ( where i define tables ) from the view ( where i make functions to query common things ) So in Tornado, every "page" has its own class, so i do this:
|
like:
The text was updated successfully, but these errors were encountered: