Dynamic fields in Django Admin

后端 未结 9 1486
失恋的感觉
失恋的感觉 2020-12-05 05:18

I want to have additional fields regarding value of one field. Therefor I build a custom admin form to add some new fields.

Related to the blogpost of jacobian 1 thi

9条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-05 05:51

    not sure why that's not working, but could a possible workaround be to define the field statically (on the form) and then override it in the __init__?

提交回复
热议问题