add search to API

This commit is contained in:
Matthias 2022-03-06 18:43:40 +01:00
parent acec4fa5d5
commit 3452880d2a
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -174,6 +174,12 @@ class SalesOrderAdditionalLineItemAdmin(ImportExportModelAdmin):
'reference'
)
search_fields = [
'order__reference',
'order__customer__name',
'reference',
]
autocomplete_fields = ('order', )