From 156ca44a135a0bc832645b0292ca3ff0e02a8148 Mon Sep 17 00:00:00 2001 From: Ross Lawley Date: Mon, 28 Jan 2013 16:49:34 +0000 Subject: [PATCH] Doc fix thanks to @jabapyth (#206) --- AUTHORS | 1 + mongoengine/queryset/queryset.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index fb895d7e..7efd3ad2 100644 --- a/AUTHORS +++ b/AUTHORS @@ -142,3 +142,4 @@ that much better: * lcya86 刘春洋 * Martin Alderete (https://github.com/malderete) * Nick Joyce + * Jared Forsyth diff --git a/mongoengine/queryset/queryset.py b/mongoengine/queryset/queryset.py index 4c664614..d313740b 100644 --- a/mongoengine/queryset/queryset.py +++ b/mongoengine/queryset/queryset.py @@ -467,7 +467,8 @@ class QuerySet(object): def with_id(self, object_id): """Retrieve the object matching the id provided. Uses `object_id` only - and raises InvalidQueryError if a filter has been applied. + and raises InvalidQueryError if a filter has been applied. Returns + `None` if no document exists with that id. :param object_id: the value for the id of the document to look up