one more recursion bug due to qs.only()

This commit is contained in:
Laura Klünder 2019-12-21 18:14:48 +01:00
parent c47d937c1d
commit c32f23b9e4

View file

@ -313,7 +313,7 @@ class EditorViewSet(EditorViewSetMixin, ViewSet):
space.wifi_measurements.all().only('geometry', 'space'),
space.pois.filter(POI.q_for_request(request)).only('geometry', 'space').prefetch_related(
Prefetch('groups', LocationGroup.objects.only(
'color', 'category', 'priority', 'category__priority', 'category__allow_pois'
'color', 'category', 'priority', 'hierarchy', 'category__priority', 'category__allow_pois'
).filter(color__isnull=False))
),
other_spaces_upper,