File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,9 @@ def get_queryset(self):
124
124
if not kwargs ['filters' ]['project' ]:
125
125
log .info ("Unable to find a project to search" )
126
126
return HTMLFile .objects .none ()
127
+ if not kwargs ['filters' ]['version' ]:
128
+ log .info ("Unable to find a version to search" )
129
+ return HTMLFile .objects .none ()
127
130
user = self .request .user
128
131
queryset = PageSearch (
129
132
query = query , user = user , ** kwargs
@@ -157,7 +160,7 @@ def get_serializer_context(self):
157
160
158
161
def get_all_projects (self ):
159
162
"""
160
- Return a list containing the project itself and all its subprojects the user has permissions over.
163
+ Return a list of the project itself and all its subprojects the user has permissions over.
161
164
162
165
:rtype: list
163
166
"""
You can’t perform that action at this time.
0 commit comments