Django limit access by group only

2019-06-14 06:53发布

I only you can limit what a user can do via the user permissions in admin.. But is there a way to limit them in admin via what group you add them to?

I want to allow a certain group to do everything in that model if they belong to a certain group

thanks!

1条回答
Emotional °昔
2楼-- · 2019-06-14 07:52

If you look at the Group model in the admin you can set permissions there. You can add people to a group by looking at their User model.

查看更多
登录 后发表回答