阅读背景:

以管理员形式显示Django ForeignKey字段的方法?

来源:互联网 

I have a model 'A' with a foreign key 'b', and in the admin I want to have the standard pulldown with the names from b. But I also want to display a secondary field for b, preferably in the help_text, or something like that, but I'll take it as part of the name as long as I can do some formatting on it, and that it doesn't override the name for other models that have the same foreign key.I have a model 'A' with a foreign key 'b', and




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

分享到: