Django ModeForm display model field of foreign key instead object id

前端 未结 0 1077
南方客
南方客 2020-12-07 22:40

I am trying to show a model field in a select field in my template. I am using a foreign key which is selected in the select field. The problem is that only the object id is

相关标签:
回答
  • 消灭零回复
提交回复
热议问题