fix: datarecordviewset 继承错误
This commit is contained in:
parent
02a9445596
commit
7f935dbf57
|
@ -1,5 +1,5 @@
|
|||
from django.shortcuts import render
|
||||
from apps.utils.viewsets import CustomModelViewSet, GenericViewSet
|
||||
from apps.utils.viewsets import CustomModelViewSet, CustomGenericViewSet
|
||||
from rest_framework.decorators import action
|
||||
from rest_framework.response import Response
|
||||
from apps.bi.models import Dataset, DatasetRecord
|
||||
|
@ -136,7 +136,7 @@ class DatasetViewSet(CustomModelViewSet):
|
|||
return Response(rdict)
|
||||
|
||||
|
||||
class DatasetRecordViewSet(ListModelMixin, GenericViewSet):
|
||||
class DatasetRecordViewSet(ListModelMixin, CustomGenericViewSet):
|
||||
perms_map = {"get": "*"}
|
||||
queryset = DatasetRecord.objects.all()
|
||||
serializer_class = DatasetRecordSerializer
|
||||
|
|
Loading…
Reference in New Issue