阅读背景:

Django InlineModelAdmin -从请求保存中设置内联字段(自动设置用户字段)(save_formset vs save_model)

来源:互联网 

I have two models, a MainModel and a related InlineModel that i'd like to show as an inline in the admin. This InlineModel can be used for, say, making notes about the model and should track the logged in admin user making changes. While this seems simple (and indeed, the docs show an example for this when the user field is part of the MainModel), I can't seem to grasp it when the field is on the Inline.I have two models, a MainModel and a related In




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

分享到: