Closed Deophius closed 3 months ago
发现竟然是历史遗留问题。似乎是写的时候把 ForeignKey 当做搜索条件,但是没有注意到 ForeignKey 上并不能直接调用 icontains,所以指定用各个 ForeignKey 的 name 作为搜索条件,解决了这个问题。
ForeignKey
icontains
name
顺便把一些搜索放到筛选里面去了,因为只有有限的几个值,似乎筛选更加合理。
Before:
After:
发现竟然是历史遗留问题。似乎是写的时候把
ForeignKey
当做搜索条件,但是没有注意到ForeignKey
上并不能直接调用icontains
,所以指定用各个ForeignKey
的name
作为搜索条件,解决了这个问题。顺便把一些搜索放到筛选里面去了,因为只有有限的几个值,似乎筛选更加合理。
Before:
After: