Skip to content

Commit 5713de8

Browse files
committed
Use the objectid in the test
1 parent 58f293f commit 5713de8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/fields/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2113,7 +2113,7 @@ class Person(Document):
21132113
Person.drop_collection()
21142114

21152115
p1 = Person(name="John").save()
2116-
Person(name="Ross", parent=p1).save()
2116+
Person(name="Ross", parent=p1.pk).save()
21172117

21182118
p = Person.objects.get(name="Ross")
21192119
self.assertEqual(p.parent, p1)

0 commit comments

Comments
 (0)