Skip to content

修复获取单个记录时引发select all的问题 #589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 25, 2018

Conversation

hongweipeng
Copy link

支持国产,讨论问题也不用再去找翻译了哈哈哈。

这个问题是这样的,我用的 list_editable 功能,能在表格内直接对记录修改。但是我发现会引起select all的,然后再select pk,两次数据库查询,显然第一次的查询是多余的,性能还很差。

这个RP解决了这个问题。

@wgbbiao wgbbiao merged commit 4ed71ef into sshwsfc:django2 Jun 25, 2018
@hongweipeng hongweipeng deleted the patch-1 branch June 25, 2018 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants