This commit is contained in:
Stefan Wojcik 2016-05-04 17:11:38 -07:00
parent 43d48b3feb
commit f750796444

View File

@ -38,7 +38,7 @@ class QuerySet(BaseQuerySet):
def __len__(self):
"""Since __len__ is called quite frequently (for example, as part of
list(qs) we populate the result cache and cache the length.
list(qs)), we populate the result cache and cache the length.
"""
if self._len is not None:
return self._len