Updated ReferenceField's to optionally store ObjectId strings.
This will become the default in 0.8 (MongoEngine/mongoengine#89)
This commit is contained in:
parent
658b3784ae
commit
4ffa8d0124
10 changed files with 336 additions and 25 deletions
|
|
@ -1729,7 +1729,7 @@ class DocumentTest(unittest.TestCase):
|
|||
|
||||
def test_circular_reference_deltas_2(self):
|
||||
|
||||
class Person( Document ):
|
||||
class Person(Document):
|
||||
name = StringField()
|
||||
owns = ListField( ReferenceField( 'Organization' ) )
|
||||
employer = ReferenceField( 'Organization' )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue