Skip to content

Commit 1e06f2a

Browse files
committed
Add options to reference
1 parent 42d15f6 commit 1e06f2a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/source/ref/utils.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ following parts can be considered stable.
1212
``parse_uri()``
1313
===============
1414

15-
.. function:: parse_uri(uri, db_name=None, test=None)
15+
.. function:: parse_uri(uri, db_name=None, test=None, options=None)
1616

1717
Parses a MongoDB `connection string`_ into a dictionary suitable for
1818
Django's :setting:`DATABASES` setting.
@@ -35,5 +35,8 @@ following parts can be considered stable.
3535
- Use ``test`` to provide a dictionary of settings for test databases in
3636
the format of :setting:`TEST <DATABASE-TEST>`.
3737

38+
- Use ``options`` to provide a dictionary of connection options to PyMongo.
39+
These will be merged with options specified in the URI.
40+
3841
But for maximum flexibility, construct :setting:`DATABASES` manually as
3942
described in :ref:`configuring-databases-setting`.

0 commit comments

Comments
 (0)