From 14ddf0008f29fcd679c2f47a9a651a60c339a842 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 29 Jun 2023 16:36:36 -0500 Subject: added searching by brand --- app/deals/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/deals/admin.py b/app/deals/admin.py index 24aa35e..264ff3d 100644 --- a/app/deals/admin.py +++ b/app/deals/admin.py @@ -10,7 +10,7 @@ from .models import Deal @admin.register(Deal) class DealAdmin(OSMGeoAdmin): list_display = ('brand', 'title', 'category', 'deal_price', 'original_price', 'discount_percent', 'promo_type', 'amazon_link', 'search_wired', 'get_airtable_code') - search_fields = ['title', ] + search_fields = ['brand', 'title', ] list_filter = ('category', 'promo_type', ('brand', DropdownFilter),) -- cgit v1.2.3-70-g09d2