Skip to content

Commit 91b7116

Browse files
committed
Add the contains filter for the name and author fields in the python content endpoint.
1 parent b350519 commit 91b7116

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES/1096.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added the `contains` filter to `name` and `author` fields for the Content endpoint.

pulp_python/app/viewsets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ class PythonPackageContentFilter(core_viewsets.ContentFilter):
337337
class Meta:
338338
model = python_models.PythonPackageContent
339339
fields = {
340-
"name": ["exact", "in"],
341-
"author": ["exact", "in"],
340+
"name": ["exact", "in", "contains"],
341+
"author": ["exact", "in", "contains"],
342342
"packagetype": ["exact", "in"],
343343
"requires_python": ["exact", "in", "contains"],
344344
"filename": ["exact", "in", "contains"],

0 commit comments

Comments
 (0)