1、增加搜索功能search_fields
在admin.py里面加入search_fields

class CloudAdmin(admin.ModelAdmin):
    list_display = ('cloud_type', 'cloud_add_time')
    search_fields = ('cloud_type', 'cloud_add_time')

根据cloud表中的cloud_type的搜索,如下图:
search_fields.png

2、增加过滤器list_filter
在admin.py里面加入list_filter

class CloudAdmin(admin.ModelAdmin):
    list_filter = ('cloud_type', 'cloud_add_time')
    list_display = ('cloud_type', 'cloud_add_time')
    search_fields = ('cloud_type', 'cloud_add_time')

实现效果如下图:
list_filter.png

带符号 * 的表示必填项