Perform a COUNT() query using the current filter constraints.
(self, using)
| 649 | return dict(zip(outer_query.annotation_select, result)) |
| 650 | |
| 651 | def get_count(self, using): |
| 652 | """ |
| 653 | Perform a COUNT() query using the current filter constraints. |
| 654 | """ |
| 655 | obj = self.clone() |
| 656 | return obj.get_aggregation(using, {"__count": Count("*")})["__count"] |
| 657 | |
| 658 | def has_filters(self): |
| 659 | return self.where |
no test coverage detected