Fixed reload issue with ReferenceField where dbref=False (MongoEngine/mongoengine#138)

This commit is contained in:
Ross Lawley
2012-09-24 18:49:29 +00:00
parent adb60ef1ac
commit 6a4351e44f
4 changed files with 15 additions and 5 deletions

View File

@@ -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)