is there a simple way to get group names of a user in django

前端 未结 4 578
独厮守ぢ
独厮守ぢ 2021-01-30 12:41

I tried following Code with the help of the django.contrib.auth.User and django.contrib.auth.Group

for g in request.user.groups         


        
4条回答
提交回复
热议问题