This commit is contained in:
Jonathan Prates 2014-05-28 08:36:57 -03:00
parent 9ba657797e
commit 47f0de9836

View File

@ -161,7 +161,12 @@ class BaseQuerySet(object):
self.rewind()
return True
return False
return False
def __bool__(self):
""" Same behaviour in Py3 """
return self.__nonzero__():
# Core functions