from CMS.Inventory.models import Product


class ProductAdmin(admin.ModelAdmin):
    search_fields = ['name__name', 'description', 'code', 'lot_no']
admin.site.register(Product, padmin)
Search_fields in django python