i am using django classed view i want to give permission to admin dynamically

后端 未结 0 1202
梦毁少年i
梦毁少年i 2021-01-17 16:25
    if form.is_valid():
        user = form.save(commit=False)
        user.is_partner = True
        user.is_staff = True
        password = request.POST.get(\'pass         


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