improve doc next to code

This commit is contained in:
Bastien Gérard 2020-01-05 21:08:20 +01:00
parent 928770c43a
commit f93f9406ee

View File

@ -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