diff --git a/api/subjects/views.py b/api/subjects/views.py index 83a7e583203..281f5e18019 100644 --- a/api/subjects/views.py +++ b/api/subjects/views.py @@ -9,7 +9,7 @@ from api.base import permissions as base_permissions from api.subjects.serializers import SubjectSerializer, SubjectsRelationshipSerializer from api.taxonomies.utils import optimize_subject_query -from osf.models import Subject, PreprintProvider +from osf.models import Subject from framework.auth.oauth_scopes import CoreScopes @@ -109,9 +109,7 @@ class SubjectList(JSONAPIBaseView, generics.ListAPIView, ListFilterMixin): def get_default_queryset(self): return optimize_subject_query( - Subject.objects.filter( - provider=PreprintProvider.get_default(), - ), + Subject.objects.filter(bepress_subject__isnull=True), ) def get_queryset(self):