2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-30 18:50:53 +00:00

Add some more search terms to the admin interface

This commit is contained in:
Oliver Walters
2020-09-29 23:41:50 +10:00
parent 1f6cbd7408
commit 0e5f10c020
4 changed files with 37 additions and 0 deletions

View File

@ -117,6 +117,13 @@ class StockItemAdmin(ImportExportModelAdmin):
list_display = ('part', 'quantity', 'location', 'status', 'updated')
# A list of search fields which can be used for lookup on matching 'autocomplete' fields
search_fields = [
'part__name',
'part__description',
'serial',
'batch',
]
class StockAttachmentAdmin(admin.ModelAdmin):