mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-13 10:35:40 +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