If you need to read from another database, use switch_db not switch_collection.
This commit is contained in:
parent
b16eabd2b6
commit
36a3770673
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user