From 12f884e3ac91cde7cb8e6b0b328088fb44035fd1 Mon Sep 17 00:00:00 2001 From: Ross Lawley Date: Mon, 16 Jan 2012 09:11:00 +0000 Subject: [PATCH] Fixes typo in documents - thanks Shalabh Closes #406 --- AUTHORS | 3 ++- docs/guide/defining-documents.rst | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/AUTHORS b/AUTHORS index 97f86747..d7e10030 100644 --- a/AUTHORS +++ b/AUTHORS @@ -93,4 +93,5 @@ that much better: * Alvin Liang * andrewmlevy * Chris Faulkner - * Ashwin Purohit \ No newline at end of file + * Ashwin Purohit + * Shalabh Aggarwal \ No newline at end of file diff --git a/docs/guide/defining-documents.rst b/docs/guide/defining-documents.rst index d7493039..6b9fcdd9 100644 --- a/docs/guide/defining-documents.rst +++ b/docs/guide/defining-documents.rst @@ -161,7 +161,7 @@ arguments can be set on all fields: :attr:`help_text` (Default: None) Optional help text to output with the field - used by form libraries -:attr:`verbose` (Default: None) +:attr:`verbose_name` (Default: None) Optional human-readable name for the field - used by form libraries @@ -481,9 +481,9 @@ Shard keys If your collection is sharded, then you need to specify the shard key as a tuple, using the :attr:`shard_key` attribute of :attr:`-mongoengine.Document.meta`. -This ensures that the shard key is sent with the query when calling the -:meth:`~mongoengine.document.Document.save` or -:meth:`~mongoengine.document.Document.update` method on an existing +This ensures that the shard key is sent with the query when calling the +:meth:`~mongoengine.document.Document.save` or +:meth:`~mongoengine.document.Document.update` method on an existing :class:`-mongoengine.Document` instance:: class LogEntry(Document):