Avoid to open all records in an if stmt in Py3.
(self)
| 217 | return False if queryset.first() is None else True |
| 218 | |
| 219 | def __bool__(self): |
| 220 | """Avoid to open all records in an if stmt in Py3.""" |
| 221 | return self._has_data() |
| 222 | |
| 223 | # Core functions |
| 224 |