mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-01 16:10:43 +00:00
Add filtering and searching to Part admin
This commit is contained in:
1 parent
28d49bdd47
commit
9b1d0bee3b
1 file changed
+4
@@ -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