Override save_model on Django InlineModelAdmin

后端 未结 6 1635
星月不相逢
星月不相逢 2020-12-31 03:38

I have a model that has a user field that needs to be auto-populated from the currently logged in user. I can get it working as specified here if the user

6条回答
  •  佛祖请我去吃肉
    2020-12-31 04:38

    Does the other model save the user? In that case you could use the post_save signal to add that information to the set of the inlined model.

提交回复
热议问题