From a42510193008cbf6f7595bdb04f5d2f870624ba8 Mon Sep 17 00:00:00 2001 From: Gerrod Ubben Date: Mon, 23 Jan 2023 13:05:10 -0500 Subject: [PATCH] Add version filter to package list endpoint fixes: #577 --- CHANGES/577.feature | 1 + pulp_python/app/viewsets.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 CHANGES/577.feature diff --git a/CHANGES/577.feature b/CHANGES/577.feature new file mode 100644 index 000000000..342f7e1f2 --- /dev/null +++ b/CHANGES/577.feature @@ -0,0 +1 @@ +Added version filter to package list endpoint. diff --git a/pulp_python/app/viewsets.py b/pulp_python/app/viewsets.py index b769e0f10..12e3bfecc 100644 --- a/pulp_python/app/viewsets.py +++ b/pulp_python/app/viewsets.py @@ -101,6 +101,7 @@ class Meta: 'filename': ['exact', 'in', 'contains'], 'keywords': ['in', 'contains'], 'sha256': ['exact', 'in'], + 'version': ['exact', 'gt', 'lt', 'gte', 'lte'] }