Skip to content

Commit 23c8e4e

Browse files
authored
Addons: default "Include subprojects" to true on search (#12278)
Initial small approach to make the "Include subprojects" filter enabled by default. I'm adding a new field to the search filter to communicate if it's enabled or disabled by default. This value will be able to be changed by the user in the future from the project admin settings. * Related readthedocs/addons#22
1 parent 33af326 commit 23c8e4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

readthedocs/proxito/views/hosting.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ def _v1(self, project, version, build, filename, url, request):
545545
[
546546
"Include subprojects",
547547
f"subprojects:{project.slug}/{version.slug}",
548+
True,
548549
]
549550
)
550551
elif project.superprojects.exists():
@@ -553,6 +554,7 @@ def _v1(self, project, version, build, filename, url, request):
553554
[
554555
"Include subprojects",
555556
f"subprojects:{superproject.slug}/{version.slug}",
557+
True,
556558
]
557559
)
558560

0 commit comments

Comments
 (0)