Django Admin在search_fields包含外键字段

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

猜你喜欢

转载自www.cnblogs.com/hanxiaomeng/p/12631281.html