From e174096173c3e9ff0886d0931e3f3902ebca4606 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 1 Jun 2022 16:52:43 +1000 Subject: [PATCH] Adds ability to search build API by part parameters (#3110) * Adds ability to filter build API by part parameters * Bump API version --- InvenTree/InvenTree/api_version.py | 5 ++++- InvenTree/build/api.py | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/InvenTree/InvenTree/api_version.py b/InvenTree/InvenTree/api_version.py index 6a708dcbae..1fc395e83d 100644 --- a/InvenTree/InvenTree/api_version.py +++ b/InvenTree/InvenTree/api_version.py @@ -4,11 +4,14 @@ InvenTree API version information # InvenTree API version -INVENTREE_API_VERSION = 52 +INVENTREE_API_VERSION = 53 """ Increment this API version number whenever there is a significant change to the API that any clients need to know about +v52 -> 2022-06-01 : https://github.com/inventree/InvenTree/pull/3110 + - Adds extra search fields to the BuildOrder list API endpoint + v52 -> 2022-05-31 : https://github.com/inventree/InvenTree/pull/3103 - Allow part list API to be searched by supplier SKU diff --git a/InvenTree/build/api.py b/InvenTree/build/api.py index c6c1c73128..fffd77ed05 100644 --- a/InvenTree/build/api.py +++ b/InvenTree/build/api.py @@ -106,8 +106,10 @@ class BuildList(APIDownloadMixin, generics.ListCreateAPIView): search_fields = [ 'reference', - 'part__name', 'title', + 'part__name', + 'part__IPN', + 'part__description', ] def get_queryset(self):