django: how to assign a logged in user to a post author

前端 未结 0 1469
终归单人心
终归单人心 2021-02-07 08:27

I\'ve set the default post author to be null, and used the form_valid function to override the post author and assign to it the current logged in user.

the form_valid() f

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