Django Admin在search_fields包含外键字段

假设要包含book表的title字段:
search_fields = ['book__title']

 

posted @ 2020-04-04 12:36  韩晓萌  阅读(679)  评论(0编辑  收藏  举报