Is there any way to create a group model with permissions already estabilished? I'm trying to create a system with at least 4 pre defined user types, and each user type will have some permissions.
是的,只需在管理面板中创建所需的组并将您的权限添加到每个组,然后将您的用户分配到已定义的组即可。
您可以使用RunPython操作将“组”和“权限”创建命令添加到迁移中。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.