Skip to content

Commit

Permalink
minor fix in formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bagerard committed Oct 24, 2022
1 parent 94c3735 commit 4bb8678
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/guide/connecting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ access to the same User document across databases::
with switch_db(User, 'archive-user-db') as User:
User(name='Ross').save() # Saves the 'archive-user-db'

.. note:: :func:`~mongoengine.context_managers.switch_db` when used on
a class that allow inheritance will change the database alias
for instances of a given class only - instances of subclasses will still use
.. note:: :func:`~mongoengine.context_managers.switch_db` when used on
a class that allow inheritance will change the database alias
for instances of a given class only - instances of subclasses will still use
the default database.

Switch Collection
Expand Down

0 comments on commit 4bb8678

Please sign in to comment.