How to save a foreignkey field while saving a HTML form in Django?

前端 未结 0 344
生来不讨喜
生来不讨喜 2021-01-18 01:20

I want to save a html form data into django model but it has a foreign key field from another model. How can I save a form which has FK field??

My models:



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