API v2: allow to filter more endpoints
@@ -89,7 +89,9 @@ class DisableListEndpoint:
# NOTE: keep list endpoint that specifies a resource
if any([
self.basename == 'version' and 'project__slug' in self.request.GET,
- self.basename == 'build' and 'commit' in self.request.GET,
+ self.basename == 'build'
+ and ('commit' in self.request.GET or 'project__slug' in self.request.GET),
+ self.basename == 'project' and 'slug' in self.request.GET,
]):
disabled = False
