Skip to content

Commit fedf3a6

Browse files
committed
Link to privilege documentation in add_user.
1 parent 1ed7718 commit fedf3a6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pymongo/database.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,10 @@ def add_user(self, name, password=None, read_only=None, **kwargs):
618618
- `password` (optional): the password of the user to create. Can not
619619
be used with the ``userSource`` argument.
620620
- `read_only` (optional): if ``True`` the user will be read only
621-
- `**kwargs` (optional): optional parameters for the user document
622-
(e.g. ``userSource``, ``otherDBRoles``, or ``roles``)
621+
- `**kwargs` (optional): optional fields for the user document
622+
(e.g. ``userSource``, ``otherDBRoles``, or ``roles``). See
623+
`<http://docs.mongodb.org/manual/reference/privilege-documents>`_
624+
for more information.
623625
624626
.. note:: The use of optional keyword arguments like ``userSource``,
625627
``otherDBRoles``, or ``roles`` requires MongoDB >= 2.4.0

0 commit comments

Comments
 (0)