django-vue-admin curd_demo 快速crud教程
快速CRUD开发教程:https://bbs.django-vue-admin.com/article/9.html
如何在 env.py 文件配置Mysql数据库:https://bbs.django-vue-admin.com/question/4.html
导入导出配置教程:https://bbs.django-vue-admin.com/article/10.html
后端插件开发教程:https://bbs.django-vue-admin.com/article/4.html
菜单管理里面设置好权限
角色管理里面设置好该角色 拥有的权限
注意保存
重新登录
11
原理
viewset.py
class CustomModelViewSet(ModelViewSet,ImportSerializerMixin,ExportSerializerMixin,QueryArgumentsMixin):
ModelViewSet
permission_classes = [CustomPermission]
from drf_yasg import openapi
from drf_yasg.utils import swagger_auto_schema
from rest_framework.decorators import action
from rest_framework.viewsets import ModelViewSet