Skip to content

Commit c8b1ef8

Browse files
committed
Use internal instead of objects
1 parent 74a4b26 commit c8b1ef8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/search/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def get_all_projects(self):
166166
all_projects = []
167167
for project in list(subprojects) + [main_project]:
168168
version = (
169-
Version.objects
169+
Version.internal
170170
.public(user=self.request.user, project=project)
171171
.filter(slug=main_version.slug)
172172
.first()

0 commit comments

Comments
 (0)