Skip to content

Instantly share code, notes, and snippets.

@orokusaki
Created May 24, 2011 18:12
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 orokusaki/989294 to your computer and use it in GitHub Desktop.
Save orokusaki/989294 to your computer and use it in GitHub Desktop.
>>> me = User.objects.get(username=u'orokusaki')
>>> for skill in me.skills.all():
... print(skill.type)
...
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
DatabaseError: query timeout
>>> # Hmmm, that's odd :/
>>> me.skills.count()
inf
>>> # I see, now :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment