阅读背景:

添加的外键未保存在django中

来源:互联网 

I have a form where a user can upload files. Upon upload, each file is immediately saved to the db and the id of each file stored in a hidden field on the form. When the form is submitted, the view extracts the ids and attempts to create the relationship between each file and the form object (farm). Although the ids reach the view, the relationships are not saved and I dont understand why - please help.I have a form where a user can upload files. Up




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

分享到: