diff --git a/CHANGES/1096.feature b/CHANGES/1096.feature new file mode 100644 index 00000000..6e354255 --- /dev/null +++ b/CHANGES/1096.feature @@ -0,0 +1 @@ +Added the `contains` filter to `name` and `author` fields for the Content endpoint. diff --git a/pulp_python/app/viewsets.py b/pulp_python/app/viewsets.py index a14f1fe3..c9c9c314 100644 --- a/pulp_python/app/viewsets.py +++ b/pulp_python/app/viewsets.py @@ -337,8 +337,8 @@ class PythonPackageContentFilter(core_viewsets.ContentFilter): class Meta: model = python_models.PythonPackageContent fields = { - "name": ["exact", "in"], - "author": ["exact", "in"], + "name": ["exact", "in", "contains"], + "author": ["exact", "in", "contains"], "packagetype": ["exact", "in"], "requires_python": ["exact", "in", "contains"], "filename": ["exact", "in", "contains"],