Added json serialisation support
- Added to_json and from_json to Document (MongoEngine/mongoengine#1) - Added to_json and from_json to QuerySet (MongoEngine/mongoengine#131)
This commit is contained in:
@@ -346,7 +346,7 @@ class InstanceTest(unittest.TestCase):
|
||||
meta = {'shard_key': ('superphylum',)}
|
||||
|
||||
Animal.drop_collection()
|
||||
doc = Animal(superphylum = 'Deuterostomia')
|
||||
doc = Animal(superphylum='Deuterostomia')
|
||||
doc.save()
|
||||
doc.reload()
|
||||
Animal.drop_collection()
|
||||
|
||||
Reference in New Issue
Block a user