mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add filtering and searching to Part admin
This commit is contained in:
parent
28d49bdd47
commit
9b1d0bee3b
@ -71,6 +71,10 @@ class PartAdmin(ImportExportModelAdmin):
|
|||||||
|
|
||||||
list_display = ('full_name', 'description', 'total_stock', 'category')
|
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 PartCategoryResource(ModelResource):
|
||||||
""" Class for managing PartCategory data import/export """
|
""" Class for managing PartCategory data import/export """
|
||||||
|
Loading…
Reference in New Issue
Block a user