17 lines
526 B
Python
17 lines
526 B
Python
from rest_framework.viewsets import GenericViewSet
|
|
from utils.pagination import PageOrNot
|
|
from rest_framework.mixins import ListModelMixin
|
|
from .models import *
|
|
from .serializers import *
|
|
|
|
from apps.project.models import *
|
|
# Create your views here.
|
|
class CertaccessViewSet(PageOrNot, ListModelMixin, GenericViewSet):
|
|
"""
|
|
业务评定
|
|
"""
|
|
perms_map = {'get': 'access_view'}
|
|
queryset = CertApp.objects.all()
|
|
serializer_class = CertappSerializerX
|
|
filterset_fields = []
|
|
ordering = ['-create_time'] |