This commit is contained in:
caoqianming 2020-04-02 22:29:18 +08:00
parent 0df7db43d3
commit ee437a7889
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ from rest_framework.permissions import IsAuthenticated
ConsumerPerms = [ ConsumerPerms = [
'paper_list', 'paper_list',
'gen_monitest', 'gen_monitest',
'questioncat_list' 'questioncat_list',
'my_collects', 'my_collects',
'my_subjects', 'my_subjects',
'my_examtest', 'my_examtest',

View File

@ -64,7 +64,7 @@ class QuestioncatViewSet(ModelViewSet):
return Response(serializer.data) return Response(serializer.data)
@action(methods=['get'], detail=False, @action(methods=['get'], detail=False,
url_path='subject', url_name='questioncat_subject', pagination_class = None) url_path='subject', url_name='questioncat_subject', pagination_class = None, permission_classes=[])
def subject(self, request): def subject(self, request):
""" """
学科下的全部分类 学科下的全部分类
@ -74,7 +74,7 @@ class QuestioncatViewSet(ModelViewSet):
return Response(serializer.data) return Response(serializer.data)
@action(methods=['get'], detail=False, @action(methods=['get'], detail=False,
url_path='workscope', url_name='questioncat_workscope', pagination_class = None) url_path='workscope', url_name='questioncat_workscope', pagination_class = None, permission_classes=[])
def workscope(self, request): def workscope(self, request):
""" """
工作类别下的全部分类 工作类别下的全部分类