Skip to content

Commit

Permalink
添加日志搜索
Browse files Browse the repository at this point in the history
  • Loading branch information
mxdabc committed Apr 13, 2024
1 parent 56d78b6 commit 3af1332
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class EpgAdmin(admin.ModelAdmin):
admin.site.register(Epg,EpgAdmin)
class Crawl_logAdmin(admin.ModelAdmin):
list_display = ('dt', 'msg', 'level')
search_fields =('msg', ) #来源列表搜索字段
admin.site.register(Crawl_log,Crawl_logAdmin)
class Channel_listAdmin(admin.ModelAdmin):
list_display = ('inner_channel_id','inner_name','out_channel_id','out_name','source')
Expand Down

0 comments on commit 3af1332

Please sign in to comment.