19 lines
828 B
Python
19 lines
828 B
Python
# -*- coding: utf-8 -*-
|
|
from utils.viewset import CustomModelViewSet
|
|
from apps.lyautocode.models.models_StudentManage import StudentManage
|
|
from apps.lyautocode.serializers.serializer_StudentManage import StudentManageSerializer
|
|
from apps.lyautocode.filters.filter_StudentManage import StudentManageFilterSet
|
|
|
|
class StudentManageViewSet(CustomModelViewSet):
|
|
"""
|
|
学生管理 接口
|
|
"""
|
|
|
|
queryset = StudentManage.objects.all()
|
|
serializer_class = StudentManageSerializer
|
|
filterset_class = StudentManageFilterSet
|
|
|
|
export_download_filename = "导出学生管理数据"
|
|
export_field_dict = {'avatar': '头像', 'name': '姓名', 'gender': '性别', 'gender2': '性别选择', 'age': '年龄', 'birthday': '生日', 'status': '状态', 'user_lyaudocode_name': '关联账号'}
|
|
|