mirror of
https://github.com/inventree/InvenTree.git
synced 2026-08-19 19:49:48 +00:00
(cherry picked from commit 8d8ecf2c4c)
Co-authored-by: Bhumin Paladiya <139330832+bhumin18@users.noreply.github.com>
This commit is contained in:
co-authored by
Bhumin Paladiya
parent
f9c7b739f6
commit
5d7be930c5
@@ -70,7 +70,7 @@ class AddressAdmin(admin.ModelAdmin):
|
||||
|
||||
list_display = ('company', 'line1', 'postal_code', 'country')
|
||||
|
||||
search_fields = ['company', 'country', 'postal_code']
|
||||
search_fields = ['company__name', 'country', 'postal_code']
|
||||
|
||||
autocomplete_fields = ['company']
|
||||
|
||||
@@ -81,6 +81,6 @@ class ContactAdmin(admin.ModelAdmin):
|
||||
|
||||
list_display = ('company', 'name', 'role', 'email', 'phone')
|
||||
|
||||
search_fields = ['company', 'name', 'email']
|
||||
search_fields = ['company__name', 'name', 'email']
|
||||
|
||||
autocomplete_fields = ['company']
|
||||
|
||||
Reference in New Issue
Block a user