core: improve application caching

This commit is contained in:
Jens Langhammer 2021-01-30 18:03:44 +01:00
parent 7c0c453d9f
commit 5af9e8c05d

View file

@ -91,7 +91,7 @@ class ApplicationViewSet(ModelViewSet):
queryset = self._filter_queryset_for_list(self.get_queryset())
self.paginate_queryset(queryset)
should_cache = "search" not in request.GET
should_cache = request.GET.get("search", "") == ""
allowed_applications = []
if not should_cache: