Skip to content

Instantly share code, notes, and snippets.

@DanielCollins
Created September 1, 2015 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanielCollins/6962c3ab6382f982aad7 to your computer and use it in GitHub Desktop.
Save DanielCollins/6962c3ab6382f982aad7 to your computer and use it in GitHub Desktop.
>>> import backend.views
>>> from backend.models.db import db
>>> import backend.models.all
>>> from backend.models.users import Users
>>> Users() in Users.query
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: argument of type 'BaseQuery' is not iterable
@s3341458
Copy link

s3341458 commented Sep 1, 2015

I was pretty sure it worked because I have tested it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment