摘要: 'QuerySet' object has no attribute '_meta' 对象列表没有'_meta'属性 单独的对象才有, 忘记加first了 edit_obj = models.Role.objects.filter(pk=edit_id).first() 阅读全文
posted @ 2018-12-27 17:31 Niuli'blog 阅读(7116) 评论(0) 推荐(0) 编辑
摘要: 1 1.权限控制 2 3 ​ -什么是权限? 4 5 ​ 一个URL对应一个权限 6 7 -表结构 4个model 6张表 8 9 菜单表 10 11 ​ -title 标题 12 13 ​ -icon 图标 14 15 ​ -weight 权重 16 17 权限表 18 19 ​ ... 阅读全文
posted @ 2018-12-27 15:01 Niuli'blog 阅读(342) 评论(0) 推荐(0) 编辑