mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add searching to other admin views
This commit is contained in:
parent
9b1d0bee3b
commit
8578a3b8d1
@ -109,6 +109,8 @@ class PartCategoryAdmin(ImportExportModelAdmin):
|
|||||||
|
|
||||||
list_display = ('name', 'pathstring', 'description')
|
list_display = ('name', 'pathstring', 'description')
|
||||||
|
|
||||||
|
search_fields = ('name', 'description')
|
||||||
|
|
||||||
|
|
||||||
class PartAttachmentAdmin(admin.ModelAdmin):
|
class PartAttachmentAdmin(admin.ModelAdmin):
|
||||||
|
|
||||||
@ -139,6 +141,8 @@ class BomItemAdmin(ImportExportModelAdmin):
|
|||||||
|
|
||||||
list_display = ('part', 'sub_part', 'quantity')
|
list_display = ('part', 'sub_part', 'quantity')
|
||||||
|
|
||||||
|
search_fields = ('part__name', 'part__description', 'sub_part__name', 'sub_part__description')
|
||||||
|
|
||||||
|
|
||||||
class ParameterTemplateAdmin(ImportExportModelAdmin):
|
class ParameterTemplateAdmin(ImportExportModelAdmin):
|
||||||
list_display = ('name', 'units')
|
list_display = ('name', 'units')
|
||||||
|
@ -48,6 +48,8 @@ class LocationAdmin(ImportExportModelAdmin):
|
|||||||
|
|
||||||
list_display = ('name', 'pathstring', 'description')
|
list_display = ('name', 'pathstring', 'description')
|
||||||
|
|
||||||
|
search_fields = ('name', 'description')
|
||||||
|
|
||||||
|
|
||||||
class StockItemResource(ModelResource):
|
class StockItemResource(ModelResource):
|
||||||
""" Class for managing StockItem data import/export """
|
""" Class for managing StockItem data import/export """
|
||||||
|
Loading…
Reference in New Issue
Block a user