From 17d6014bf19f1413130f065e11ef862511fd874c Mon Sep 17 00:00:00 2001 From: Brian Helba Date: Sun, 29 Jun 2014 23:07:28 -0400 Subject: [PATCH] Fix some minor spelling and grammar in documentation --- docs/guide/connecting.rst | 4 ++-- mongoengine/base/fields.py | 2 +- mongoengine/dereference.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/guide/connecting.rst b/docs/guide/connecting.rst index dd89938b..fcdfe0a3 100644 --- a/docs/guide/connecting.rst +++ b/docs/guide/connecting.rst @@ -35,8 +35,8 @@ in ::func:`~mongoengine.connect` ReplicaSets =========== -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 +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 connection kwargs. Read preferences are supported through the connection or via individual diff --git a/mongoengine/base/fields.py b/mongoengine/base/fields.py index 7329151e..ad173191 100644 --- a/mongoengine/base/fields.py +++ b/mongoengine/base/fields.py @@ -43,7 +43,7 @@ class BaseField(object): :param required: If the field is required. Whether it has to have a value or not. Defaults to False. :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. :param unique: Is the field value unique or not. Defaults to False. :param unique_with: (optional) The other field this field should be diff --git a/mongoengine/dereference.py b/mongoengine/dereference.py index 08eac7dd..18235b96 100644 --- a/mongoengine/dereference.py +++ b/mongoengine/dereference.py @@ -12,7 +12,7 @@ class DeReference(object): def __call__(self, items, max_depth=1, instance=None, name=None): """ 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 max_depth: The maximum depth to recurse to