开发者

Problems displaying two fields in same line in django admin

开发者 https://www.devze.com 2023-04-02 12:24 出处:网络
I 开发者_运维问答am having this weird problem of displaying two fields in the same line. According to django docs, for that I just need to wrap the two fields in a tuple. For eg, lets say I have two f

I 开发者_运维问答am having this weird problem of displaying two fields in the same line. According to django docs, for that I just need to wrap the two fields in a tuple. For eg, lets say I have two fields A and B, so what I can do is

fields= (('A','B'),'C'.....)

However it is showing the following error,

MyModel.fields refers to field '('A', 'B')' that is missing from the form. Is it because of the version of django? This is really weird

0

精彩评论

暂无评论...
验证码 换一张
取 消