Yuanpei-Intelligence / YPPF

Yuanpei Profile
MIT License
27 stars 47 forks source link

修了一下在某些管理界面搜索时出现的500错误 #825

Closed Deophius closed 3 months ago

Deophius commented 6 months ago

发现竟然是历史遗留问题。似乎是写的时候把 ForeignKey 当做搜索条件,但是没有注意到 ForeignKey 上并不能直接调用 icontains,所以指定用各个 ForeignKeyname 作为搜索条件,解决了这个问题。

顺便把一些搜索放到筛选里面去了,因为只有有限的几个值,似乎筛选更加合理。

Before:

image

After:

image