mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +00:00 
			
		
		
		
	Make PartCategories to be filterable by name and description (#3854)
* Make PartCategories to be filterable by name and description * Bump API version
This commit is contained in:
		@@ -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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -153,6 +153,8 @@ class CategoryList(ListCreateAPI):
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    filterset_fields = [
 | 
			
		||||
        'name',
 | 
			
		||||
        'description'
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    ordering_fields = [
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user