Return True if the QuerySet would have any results, False otherwise.
(self)
| 1428 | _update.queryset_only = False |
| 1429 | |
| 1430 | def exists(self): |
| 1431 | """ |
| 1432 | Return True if the QuerySet would have any results, False otherwise. |
| 1433 | """ |
| 1434 | if self._result_cache is None: |
| 1435 | return self.query.has_results(using=self.db) |
| 1436 | return bool(self._result_cache) |
| 1437 | |
| 1438 | async def aexists(self): |
| 1439 | return await sync_to_async(self.exists)() |
no test coverage detected