TOP
摘要: 用户模型视图中获取用户的当前所有权限 @property def permissions(self): user_permissions = [perm.codename for perm in self.user_permissions.all()] group_permissions = [] 阅读全文
posted @ 2023-05-18 21:16 羊驼之歌 阅读(90) 评论(0) 推荐(0) 编辑