Return True/False whether queryset exists.
(self)
| 795 | ) |
| 796 | |
| 797 | def exists(self) -> ExistsQuery: |
| 798 | """ |
| 799 | Return True/False whether queryset exists. |
| 800 | """ |
| 801 | return ExistsQuery( |
| 802 | db=self._db, |
| 803 | model=self.model, |
| 804 | q_objects=self._q_objects, |
| 805 | annotations=self._annotations, |
| 806 | custom_filters=self._custom_filters, |
| 807 | force_indexes=self._force_indexes, |
| 808 | use_indexes=self._use_indexes, |
| 809 | ) |
| 810 | |
| 811 | def all(self) -> QuerySet[MODEL]: |
| 812 | """ |
nothing calls this directly
no test coverage detected