(self, request, *args, **kwargs)
| 1609 | |
| 1610 | @action(detail=False, methods=["get"], url_path="ids") |
| 1611 | def get_ids(self, request, *args, **kwargs): |
| 1612 | # Get the filtered queryset |
| 1613 | queryset = self.get_queryset() |
| 1614 | |
| 1615 | # Apply filtering, search, and ordering |
| 1616 | queryset = self.filter_queryset(queryset) |
| 1617 | |
| 1618 | # Return only the IDs from the queryset |
| 1619 | channel_ids = queryset.values_list("id", flat=True) |
| 1620 | |
| 1621 | # JsonResponse skips DRF's renderer pipeline for a flat int list. |
| 1622 | return JsonResponse(list(channel_ids), safe=False) |
| 1623 | |
| 1624 | @action(detail=False, methods=["get"], url_path="summary") |
| 1625 | def summary(self, request, *args, **kwargs): |
nothing calls this directly
no test coverage detected