Accessing a missing field now returns None rather than raising an AttributeError

This commit is contained in:
Harry Marr 2009-12-24 17:10:36 +00:00
commit f687bad202
5 changed files with 14 additions and 17 deletions

View file

@ -213,8 +213,6 @@ saved::
>>> page = Page(title="Test Page")
>>> page.id
...
AttributeError('_id')
>>> page.save()
>>> page.id
ObjectId('123456789abcdef000000000')