From 8b30add49e027b9609dcf82fe5c12ae11994f7c8 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 1 Aug 2019 15:39:02 +0200 Subject: [PATCH] readd selected_related but without arguments --- pandora/place/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora/place/views.py b/pandora/place/views.py index 0b4c105a..01533b52 100644 --- a/pandora/place/views.py +++ b/pandora/place/views.py @@ -240,6 +240,7 @@ def findPlaces(request, data): qs = qs.distinct() if 'keys' in data: qs = qs[query['range'][0]:query['range'][1]] + qs = qs.select_related() response['data']['items'] = [p.json(data['keys'], request.user) for p in qs] elif 'position' in query: ids = [i.get_id() for i in qs]