def random(self, request): data, count = SearchBackend.random(request.GET.get('count', 3)) return Response({'count': count, 'articles': data})