阅读背景:

在Django管理员更改列表中,如何显示空格而不是默认的“(无)”?

来源:互联网 

When a field is null in the database, Django inserts "(None)" to hold the place of the null when displaying a changelist. While descriptive, when there are lots of fields on a changelist, it makes everything very busy to look at, where as a blank field would be just as helpful but much less cluttered. So is there some way to change the text Django uses for representing null fields in the changelist? Doesn't matter if the solution is modeladmin-specific or admin wide.When a field is null in the database, Django in




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: