Fix some minor spelling and grammar in documentation

This commit is contained in:
Brian Helba 2014-06-29 23:07:28 -04:00
parent ff57cd4eaf
commit 17d6014bf1
3 changed files with 4 additions and 4 deletions

View File

@ -35,8 +35,8 @@ in ::func:`~mongoengine.connect`
ReplicaSets ReplicaSets
=========== ===========
MongoEngine supports :class:`~pymongo.mongo_replica_set_client.MongoReplicaSetClient` MongoEngine supports :class:`~pymongo.mongo_replica_set_client.MongoReplicaSetClient`.
to use them please use a URI style connection and provide the `replicaSet` name in the To use them, please use a URI style connection and provide the `replicaSet` name in the
connection kwargs. connection kwargs.
Read preferences are supported through the connection or via individual Read preferences are supported through the connection or via individual

View File

@ -43,7 +43,7 @@ class BaseField(object):
:param required: If the field is required. Whether it has to have a :param required: If the field is required. Whether it has to have a
value or not. Defaults to False. value or not. Defaults to False.
:param default: (optional) The default value for this field if no value :param default: (optional) The default value for this field if no value
has been set (or if the value has been unset). It Can be a has been set (or if the value has been unset). It can be a
callable. callable.
:param unique: Is the field value unique or not. Defaults to False. :param unique: Is the field value unique or not. Defaults to False.
:param unique_with: (optional) The other field this field should be :param unique_with: (optional) The other field this field should be

View File

@ -12,7 +12,7 @@ class DeReference(object):
def __call__(self, items, max_depth=1, instance=None, name=None): def __call__(self, items, max_depth=1, instance=None, name=None):
""" """
Cheaply dereferences the items to a set depth. Cheaply dereferences the items to a set depth.
Also handles the convertion of complex data types. Also handles the conversion of complex data types.
:param items: The iterable (dict, list, queryset) to be dereferenced. :param items: The iterable (dict, list, queryset) to be dereferenced.
:param max_depth: The maximum depth to recurse to :param max_depth: The maximum depth to recurse to