From 41a352a4649630fbe4cee77cd2cbc3a38e401f98 Mon Sep 17 00:00:00 2001 From: DeVon Jackson <50152349+devo-wm@users.noreply.github.com> Date: Mon, 9 Dec 2024 13:18:42 +0000 Subject: [PATCH] adds site domain to search fields --- src/vendor/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vendor/admin.py b/src/vendor/admin.py index 6e08acbb..7f16528d 100644 --- a/src/vendor/admin.py +++ b/src/vendor/admin.py @@ -134,7 +134,7 @@ class InvoiceAdmin(admin.ModelAdmin): class OfferAdmin(admin.ModelAdmin): readonly_fields = ('uuid',) list_display = ('name', 'slug', 'site', 'terms', 'available', 'deleted') - search_fields = ('name', 'site', ) + search_fields = ('name', 'site__domain', ) list_filter = ('site__domain', ) inlines = [ PriceInline,