Fixed reload issue with ReferenceField where dbref=False (MongoEngine/mongoengine#138)
This commit is contained in:
parent
adb60ef1ac
commit
6a4351e44f
4 changed files with 15 additions and 5 deletions
|
|
@ -84,6 +84,7 @@ class FieldTest(unittest.TestCase):
|
|||
|
||||
group = Group(members=User.objects)
|
||||
group.save()
|
||||
group.reload() # Confirm reload works
|
||||
|
||||
with query_counter() as q:
|
||||
self.assertEqual(q, 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue