mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
Refs #23919 -- Removed __nonzero__() methods (for Python 2).
Thanks Tim for the review.
This commit is contained in:
@@ -253,9 +253,6 @@ class QuerySet:
|
||||
self._fetch_all()
|
||||
return bool(self._result_cache)
|
||||
|
||||
def __nonzero__(self): # Python 2 compatibility
|
||||
return type(self).__bool__(self)
|
||||
|
||||
def __getitem__(self, k):
|
||||
"""
|
||||
Retrieves an item or slice from the set of results.
|
||||
|
||||
Reference in New Issue
Block a user