mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-24 00:36:39 +00:00
(cherry picked from commit 8d8ecf2c4c)
Co-authored-by: Bhumin Paladiya <139330832+bhumin18@users.noreply.github.com>
This commit is contained in:
1 parent
f9c7b739f6
commit
5d7be930c5
1 file changed
+2
-2
@@ -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