how to get username as initial value on forms in django

前端 未结 0 1666
小鲜肉
小鲜肉 2021-01-05 07:11

I would like to get initial value on the following form but i get error : name \'user\' is not defined. I don\'t know how to get user.username.

class InvoiceF         


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