Use the objectid in the test
This commit is contained in:
parent
58f293fef3
commit
5713de8966
@ -2113,7 +2113,7 @@ class FieldTest(MongoDBTestCase):
|
||||
Person.drop_collection()
|
||||
|
||||
p1 = Person(name="John").save()
|
||||
Person(name="Ross", parent=p1).save()
|
||||
Person(name="Ross", parent=p1.pk).save()
|
||||
|
||||
p = Person.objects.get(name="Ross")
|
||||
self.assertEqual(p.parent, p1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user