mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	Add filtering and searching to Part admin
This commit is contained in:
		| @@ -71,6 +71,10 @@ class PartAdmin(ImportExportModelAdmin): | ||||
|  | ||||
|     list_display = ('full_name', 'description', 'total_stock', 'category') | ||||
|  | ||||
|     list_filter = ('active', 'assembly', 'is_template', 'virtual') | ||||
|  | ||||
|     search_fields = ('name', 'description', 'category__name', 'category__description', 'IPN') | ||||
|  | ||||
|  | ||||
| class PartCategoryResource(ModelResource): | ||||
|     """ Class for managing PartCategory data import/export """ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user