mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Refs #23919 -- Removed __nonzero__() methods (for Python 2).
Thanks Tim for the review.
This commit is contained in:
parent
53f3d53ed4
commit
4c5ed3e683
10 changed files with 8 additions and 34 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue