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

If model has query, but it has no attribute filter, use session #315

Merged
merged 1 commit into from Jul 15, 2014

Conversation

@eirnym
Copy link
Contributor

eirnym commented May 12, 2014

@@ -75,9 +75,15 @@ def session_query(session, model):
"""
if hasattr(model, 'query'):

This comment has been minimized.

Copy link
@jfinkels

jfinkels Jun 4, 2014

Owner

Remove this blank line

query = model.query()
else:
query = model.query

This comment has been minimized.

Copy link
@jfinkels

jfinkels Jun 4, 2014

Owner

Remove this blank line.


if hasattr(query, 'filter'):
return query

This comment has been minimized.

Copy link
@jfinkels

jfinkels Jun 4, 2014

Owner

Remove this blank line.

@eirnym

This comment has been minimized.

Copy link
Contributor Author

eirnym commented Jul 6, 2014

I've rebased commit.

jfinkels added a commit that referenced this pull request Jul 15, 2014
If model has query, but it has no attribute filter, use session
@jfinkels jfinkels merged commit 94d9048 into jfinkels:master Jul 15, 2014
1 check passed
1 check passed
continuous-integration/travis-ci The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.