Skip to content

Commit

Permalink
fixing examples.py to use .mongo_id attribute on document, which exis…
Browse files Browse the repository at this point in the history
…ts, instead of ._id, which does not exist
  • Loading branch information
jacob authored and jacob committed Aug 2, 2012
1 parent 000f17e commit 432dec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/examples.py
Expand Up @@ -55,7 +55,7 @@ def print_all():
a = Address(street_address='123 4th ave', city='NY', state_province='NY', country='USA')
u = User(name='jeff', email='jeff@qcircles.net', address=a)
s.insert(u)
print u._id
print u.mongo_id

query = User.address.country == 'USA'

Expand Down

0 comments on commit 432dec0

Please sign in to comment.