From f93f9406ee3646eb3bac8fbeed6aa502ffd83a31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastien=20G=C3=A9rard?= Date: Sun, 5 Jan 2020 21:08:20 +0100 Subject: [PATCH] improve doc next to code --- mongoengine/queryset/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mongoengine/queryset/base.py b/mongoengine/queryset/base.py index d7b4007e..125480a7 100644 --- a/mongoengine/queryset/base.py +++ b/mongoengine/queryset/base.py @@ -423,6 +423,7 @@ class BaseQuerySet(object): # Accounts for some operators that used to work with .count but are no longer working # with count_documents (i.e $geoNear, $near, and $nearSphere) # fallback to deprecated Cursor.count + # Keeping this should be reevaluated the day pymongo removes .count entirely count = self._cursor.count(with_limit_and_skip=with_limit_and_skip) self._cursor_obj = None