diff --git a/tracker/api/views/interview.py b/tracker/api/views/interview.py index 05f360eb..e83e13c4 100644 --- a/tracker/api/views/interview.py +++ b/tracker/api/views/interview.py @@ -10,7 +10,7 @@ class InterviewViewSet(TrackerFullViewSet, EventCreateNestedMixin): - queryset = Interview.objects.select_related('event') + queryset = Interview.objects.select_related('event').prefetch_related('tags') serializer_class = InterviewSerializer pagination_class = TrackerPagination permission_classes = [*PrivateGenericPermissions('interview', lambda o: o.public)] diff --git a/tracker/api/views/run.py b/tracker/api/views/run.py index 76471528..362f3364 100644 --- a/tracker/api/views/run.py +++ b/tracker/api/views/run.py @@ -16,8 +16,10 @@ class SpeedRunViewSet( EventNestedMixin, TrackerFullViewSet, ): - queryset = SpeedRun.objects.select_related('event').prefetch_related( - 'runners', 'hosts', 'commentators', 'video_links__link_type' + queryset = SpeedRun.objects.select_related( + 'event', 'priority_tag' + ).prefetch_related( + 'runners', 'hosts', 'commentators', 'video_links__link_type', 'tags' ) serializer_class = SpeedRunSerializer pagination_class = TrackerPagination