Skip to content

Commit

Permalink
Remove NetworkLocationViewSet get_queryset redundancy
Browse files Browse the repository at this point in the history
  • Loading branch information
LianaHarris360 committed Nov 19, 2024
1 parent 9aa66e1 commit a425e4f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions kolibri/core/discovery/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@ def get_queryset(self):
reserved_queryset = NetworkLocation.objects.filter(
id__in=reserved_ids,
)
queryset = base_queryset | reserved_queryset
else:
# By default, exclude KDP/Studio reserved locations
queryset = base_queryset
return queryset
return base_queryset | reserved_queryset
return base_queryset

def get_object(self, id_filter=None):
"""
Expand Down

0 comments on commit a425e4f

Please sign in to comment.