From 36a3770673b34e912b894043f4c3d7ce8771c594 Mon Sep 17 00:00:00 2001 From: Daniel Axtens Date: Mon, 20 May 2013 15:49:01 +1000 Subject: [PATCH] If you need to read from another database, use switch_db not switch_collection. --- mongoengine/document.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongoengine/document.py b/mongoengine/document.py index 6c1045bc..89627dcd 100644 --- a/mongoengine/document.py +++ b/mongoengine/document.py @@ -388,7 +388,7 @@ class Document(BaseDocument): user.save() If you need to read from another database see - :class:`~mongoengine.context_managers.switch_collection` + :class:`~mongoengine.context_managers.switch_db` :param collection_name: The database alias to use for saving the document