diff --git a/CHANGES/3135.feature b/CHANGES/3135.feature new file mode 100644 index 000000000..37d2c2e04 --- /dev/null +++ b/CHANGES/3135.feature @@ -0,0 +1 @@ +Added more filter options on the packages API. diff --git a/pulp_rpm/app/viewsets/package.py b/pulp_rpm/app/viewsets/package.py index 718faa2a6..186ce7672 100644 --- a/pulp_rpm/app/viewsets/package.py +++ b/pulp_rpm/app/viewsets/package.py @@ -24,11 +24,11 @@ class PackageFilter(ContentFilter): class Meta: model = Package fields = { - "name": ["exact", "in", "ne"], + "name": ["exact", "in", "ne", "contains", "startswith"], "epoch": ["exact", "in", "ne"], "version": ["exact", "in", "ne"], - "release": ["exact", "in", "ne"], - "arch": ["exact", "in", "ne"], + "release": ["exact", "in", "ne", "contains", "startswith"], + "arch": ["exact", "in", "ne", "contains", "startswith"], "pkgId": ["exact", "in"], "checksum_type": ["exact", "in", "ne"], }