I have attached my admin panel screenshot https://i.stack.imgur.com/wWZ4K.png
Here is my admin.py code:
`from django.contrib import admin
from .models import *
from django.utils import *
import csv
from django.http import HttpResponse
class ProductAdmin(admin.ModelAdmin):
search_fields = ('name',)
list_display = ('name','price',)
admin.site.register(Product,ProductAdmin)`
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.