From f3dee187bcc305745e35cf5ae407bf0ece566749 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikl=C3=B3s=20M=C3=A1rton?= Date: Wed, 26 Oct 2022 00:46:28 +0200 Subject: [PATCH] Make PartCategories to be filterable by name and description (#3854) * Make PartCategories to be filterable by name and description * Bump API version --- InvenTree/InvenTree/api_version.py | 5 ++++- InvenTree/part/api.py | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/InvenTree/InvenTree/api_version.py b/InvenTree/InvenTree/api_version.py index c7a133c517..553ff85251 100644 --- a/InvenTree/InvenTree/api_version.py +++ b/InvenTree/InvenTree/api_version.py @@ -2,11 +2,14 @@ # InvenTree API version -INVENTREE_API_VERSION = 77 +INVENTREE_API_VERSION = 78 """ Increment this API version number whenever there is a significant change to the API that any clients need to know about +v78 -> 2022-10-25 : https://github.com/inventree/InvenTree/pull/3854 + - Make PartCategory to be filtered by name and description + v77 -> 2022-10-12 : https://github.com/inventree/InvenTree/pull/3772 - Adds model permission checks for barcode assignment actions diff --git a/InvenTree/part/api.py b/InvenTree/part/api.py index 6633758b43..137394ee49 100644 --- a/InvenTree/part/api.py +++ b/InvenTree/part/api.py @@ -153,6 +153,8 @@ class CategoryList(ListCreateAPI): ] filterset_fields = [ + 'name', + 'description' ] ordering_fields = [